This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Resolved status.
promise
move constructorSection: 33.10.6 [futures.promise] Status: Resolved Submitter: LWG Opened: 2009-06-28 Last modified: 2016-01-28
Priority: Not Prioritized
View other active issues in [futures.promise].
View all other issues in [futures.promise].
View all issues with Resolved status.
Discussion:
Addresses UK 343
Description
The move constructor of a std::promise
object does not need to allocate any memory, so the
move-construct-with-allocator overload of the constructor
is superfluous.
Suggestion
Remove the constructor with the signature template <class
Allocator> promise(allocator_arg_t, const Allocator&
a, promise& rhs);
Notes
Create an issue. Detlef will look into it. Will solicit feedback from Pablo. Note that "rhs" argument should also be an rvalue reference in any case.
[ 2009-07 Frankfurt ]
Pending a paper from Anthony Williams / Detlef Vollmann.
[ 2009-10 Santa Cruz: ]
NAD EditorialResolved. Adressed by N2997.
Proposed resolution: