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

Issue 2449753002: base::EmplaceUnique (Closed)

Created:
4 years, 1 month ago by tapted
Modified:
3 years, 7 months ago
Reviewers:
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base::EmplaceUnique Allows one to omit the template argument when assigning the result of `MakeUnique` directly to a std::unique_ptr. This hurts the brain a bit, but it effectively adds a tightly-controlled conversion operator from a std::tuple to a std::unique_ptr. BUG=

Patch Set 1 #

Patch Set 2 : fix presubmit #

Patch Set 3 : less weird #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -2 lines) Patch
M ui/views/controls/scroll_view_unittest.cc View 1 2 3 chunks +36 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 1 (1 generated)
tapted
4 years, 1 month ago (2016-10-25 11:33:02 UTC) #1
Description was changed from

==========
base::EmplaceUnique

Allows one to omit the template argument when assigning the result of
`MakeUnique` directly to a std::unique_ptr.

BUG=
==========

to

==========
base::EmplaceUnique

Allows one to omit the template argument when assigning the result of
`MakeUnique` directly to a std::unique_ptr.

This hurts the brain a bit, but it effectively adds a tightly-controlled
conversion operator from a std::tuple to a std::unique_ptr.

BUG=
==========

Powered by Google App Engine
This is Rietveld 408576698