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

Issue 1423663010: Change ScopedPtr(Hash)Map to make qualified calls to ignore_result(). (Closed)

Created:
5 years, 1 month ago by Sam McNally
Modified:
5 years, 1 month ago
Reviewers:
danakj
CC:
chromium-reviews, vmpstr+watch_chromium.org, Matt Giuca, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change ScopedPtr(Hash)Map to make qualified calls to ignore_result(). Currently, ignore_result() calls in ScopedPtr(Hash)Map are unqualified. If the mapped_type is in a namespace containing an ignore_result() function, ADL causes that function to be considered in overload resolution. If the ignore_result() in that namespace is a function template, both ignore_result() functions are equally ranked in overload resolution, resulting in the ignore_result() call being ambiguous. This change avoids this problem by making qualified calls to ignore_result() in ScopedPtr(Hash)Map. Committed: https://crrev.com/40d9ba69acc929515cd23196022edfd4b49ed9a0 Cr-Commit-Position: refs/heads/master@{#357298}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix whitespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -2 lines) Patch
M base/containers/scoped_ptr_hash_map.h View 1 chunk +1 line, -1 line 0 comments Download
M base/containers/scoped_ptr_hash_map_unittest.cc View 1 2 chunks +17 lines, -0 lines 0 comments Download
M base/containers/scoped_ptr_map.h View 1 chunk +1 line, -1 line 0 comments Download
M base/containers/scoped_ptr_map_unittest.cc View 1 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Sam McNally
5 years, 1 month ago (2015-10-29 03:05:43 UTC) #3
danakj
https://codereview.chromium.org/1423663010/diff/1/base/containers/scoped_ptr_hash_map_unittest.cc File base/containers/scoped_ptr_hash_map_unittest.cc (right): https://codereview.chromium.org/1423663010/diff/1/base/containers/scoped_ptr_hash_map_unittest.cc#newcode12 base/containers/scoped_ptr_hash_map_unittest.cc:12: namespace namespace_with_ignore_result { can you whitespace better here? 1 ...
5 years, 1 month ago (2015-10-29 17:48:39 UTC) #4
Sam McNally
https://codereview.chromium.org/1423663010/diff/1/base/containers/scoped_ptr_hash_map_unittest.cc File base/containers/scoped_ptr_hash_map_unittest.cc (right): https://codereview.chromium.org/1423663010/diff/1/base/containers/scoped_ptr_hash_map_unittest.cc#newcode12 base/containers/scoped_ptr_hash_map_unittest.cc:12: namespace namespace_with_ignore_result { On 2015/10/29 17:48:39, danakj wrote: > ...
5 years, 1 month ago (2015-10-30 00:18:40 UTC) #5
danakj
LGTM
5 years, 1 month ago (2015-10-30 17:44:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423663010/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423663010/20001
5 years, 1 month ago (2015-11-02 01:01:19 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-02 02:22:09 UTC) #9
commit-bot: I haz the power
5 years, 1 month ago (2015-11-02 02:22:48 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/40d9ba69acc929515cd23196022edfd4b49ed9a0
Cr-Commit-Position: refs/heads/master@{#357298}

Powered by Google App Engine
This is Rietveld 408576698