Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Issue 2298133003: Support rvalue-reference IgnoreResult in base::Bind impl (Closed)

Created:
4 years, 3 months ago by tzik
Modified:
4 years, 3 months ago
Reviewers:
Yuta Kitamura
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support rvalue-reference IgnoreResult in base::Bind impl When an IgnoreResult is passed as a rvalue-reference, Bind impl has passed the target functor as a lvalue-reference. That causes a compile failure when the target functor can be run via rvalue-reference only. This CL changes IgnoreResult handling in base::Bind impl, so that it uses rvalue-reference functor when IgnoreResult itself is passed as a rvalue-reference. BUG=554299 Committed: https://crrev.com/ff54a5b153e0541491ef563d228bdfaf10190119 Cr-Commit-Position: refs/heads/master@{#415613}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M base/bind_internal.h View 2 chunks +4 lines, -3 lines 2 comments Download

Messages

Total messages: 17 (10 generated)
tzik
PTAL
4 years, 3 months ago (2016-08-31 08:08:20 UTC) #5
Yuta Kitamura
https://codereview.chromium.org/2298133003/diff/1/base/bind_internal.h File base/bind_internal.h (right): https://codereview.chromium.org/2298133003/diff/1/base/bind_internal.h#newcode248 base/bind_internal.h:248: std::forward<IgnoreResultType>(ignore_result_helper).functor_, Just to be sure: this change tries to ...
4 years, 3 months ago (2016-08-31 09:38:21 UTC) #6
tzik
https://codereview.chromium.org/2298133003/diff/1/base/bind_internal.h File base/bind_internal.h (right): https://codereview.chromium.org/2298133003/diff/1/base/bind_internal.h#newcode248 base/bind_internal.h:248: std::forward<IgnoreResultType>(ignore_result_helper).functor_, On 2016/08/31 09:38:21, Yuta Kitamura wrote: > Just ...
4 years, 3 months ago (2016-08-31 09:51:11 UTC) #8
Yuta Kitamura
OK, LGTM.
4 years, 3 months ago (2016-08-31 09:56:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2298133003/1
4 years, 3 months ago (2016-08-31 10:26:00 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-08-31 11:50:58 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 11:52:21 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ff54a5b153e0541491ef563d228bdfaf10190119
Cr-Commit-Position: refs/heads/master@{#415613}

Powered by Google App Engine
This is Rietveld 408576698