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

Issue 2517793002: Improve compile error when invoking OnceCallback::Run on a non-rvalue. (Closed)

Created:
4 years, 1 month ago by dcheng
Modified:
4 years, 1 month ago
Reviewers:
danakj, vmpstr, tzik
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve compile error when invoking OnceCallback::Run on a non-rvalue. Some callback helper templates have also been simplified. BUG=667031 Committed: https://crrev.com/77172b96f4e84e91ace073cfacfcd9a50a3d96d8 Cr-Commit-Position: refs/heads/master@{#433810}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add C++ language lawyering explanation. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -10 lines) Patch
M base/bind_unittest.nc View 1 chunk +7 lines, -0 lines 0 comments Download
M base/callback.h View 1 4 chunks +29 lines, -10 lines 1 comment Download

Messages

Total messages: 26 (19 generated)
dcheng
https://codereview.chromium.org/2517793002/diff/1/base/bind_unittest.nc File base/bind_unittest.nc (right): https://codereview.chromium.org/2517793002/diff/1/base/bind_unittest.nc#newcode231 base/bind_unittest.nc:231: cb.Run(); I could put this in callback_unittest.nc as well, ...
4 years, 1 month ago (2016-11-19 08:08:00 UTC) #5
vmpstr
https://codereview.chromium.org/2517793002/diff/1/base/callback.h File base/callback.h (right): https://codereview.chromium.org/2517793002/diff/1/base/callback.h#newcode45 base/callback.h:45: static_assert(!IsOnceCallback<CallbackType>::value, On 2016/11/19 08:07:59, dcheng wrote: > This feels ...
4 years, 1 month ago (2016-11-21 20:00:40 UTC) #9
dcheng
https://codereview.chromium.org/2517793002/diff/1/base/callback.h File base/callback.h (right): https://codereview.chromium.org/2517793002/diff/1/base/callback.h#newcode45 base/callback.h:45: static_assert(!IsOnceCallback<CallbackType>::value, On 2016/11/21 20:00:40, vmpstr wrote: > On 2016/11/19 ...
4 years, 1 month ago (2016-11-22 01:48:28 UTC) #12
tzik
lgtm https://codereview.chromium.org/2517793002/diff/20001/base/callback.h File base/callback.h (right): https://codereview.chromium.org/2517793002/diff/20001/base/callback.h#newcode57 base/callback.h:57: "std::move(callback).Run()."); Hmm, OK, let's go this way. I ...
4 years, 1 month ago (2016-11-22 07:39:03 UTC) #17
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/2517793002/20001
4 years, 1 month ago (2016-11-22 07:42:27 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-22 07:46:34 UTC) #24
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 07:50:31 UTC) #26
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/77172b96f4e84e91ace073cfacfcd9a50a3d96d8
Cr-Commit-Position: refs/heads/master@{#433810}

Powered by Google App Engine
This is Rietveld 408576698