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

Issue 1904603002: Fix scoped_refptr copy/move-conversion overload resolution (Closed)

Created:
4 years, 8 months ago by piman
Modified:
4 years, 8 months ago
Reviewers:
danakj
CC:
chromium-reviews, gavinp+memory_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix scoped_refptr copy/move-conversion overload resolution When an overloaded function takes a scoped_refptr<U> for a different U for different overloads, the compiler doesn't know which one to take when passing a scoped_refptr<D>, even if D* is only convertible to one of the U*. Use SFINAE to eliminate copy/move-convert constructors that shouldn't take part in the overload resolution. BUG=None Committed: https://crrev.com/5313092de707a68b9fc7cf930677fe127fc5317d Cr-Commit-Position: refs/heads/master@{#388388}

Patch Set 1 #

Patch Set 2 : iwyu #

Total comments: 4

Patch Set 3 : remove dummy type name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -2 lines) Patch
M base/memory/ref_counted.h View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M base/memory/ref_counted_unittest.cc View 2 chunks +34 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (5 generated)
piman
4 years, 8 months ago (2016-04-19 23:11:09 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1904603002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1904603002/20001
4 years, 8 months ago (2016-04-19 23:15:52 UTC) #4
danakj
LGTM https://codereview.chromium.org/1904603002/diff/20001/base/memory/ref_counted.h File base/memory/ref_counted.h (right): https://codereview.chromium.org/1904603002/diff/20001/base/memory/ref_counted.h#newcode288 base/memory/ref_counted.h:288: typename Dummy = typename std::enable_if< nit: don't need ...
4 years, 8 months ago (2016-04-19 23:19:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1904603002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1904603002/40001
4 years, 8 months ago (2016-04-19 23:22:52 UTC) #8
piman
https://codereview.chromium.org/1904603002/diff/20001/base/memory/ref_counted.h File base/memory/ref_counted.h (right): https://codereview.chromium.org/1904603002/diff/20001/base/memory/ref_counted.h#newcode288 base/memory/ref_counted.h:288: typename Dummy = typename std::enable_if< On 2016/04/19 23:19:46, danakj ...
4 years, 8 months ago (2016-04-19 23:24:49 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-20 01:04:50 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:19:21 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5313092de707a68b9fc7cf930677fe127fc5317d
Cr-Commit-Position: refs/heads/master@{#388388}

Powered by Google App Engine
This is Rietveld 408576698