This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD status.
promise::swap
should pass by rvalue referenceSection: 32.10.6 [futures.promise] Status: NAD 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 NAD status.
Discussion:
Addresses UK 341
Description
promise::swap
accepts its parameter by lvalue reference. This is
inconsistent with other types that provide a swap member function,
where those swap functions accept an rvalue reference
Suggestion
Change promise::swap
to take an rvalue reference.
Notes
Create an issue. Detlef will look into it. Probably ready as it.
[ 2009-07 Frankfurt ]
NAD, by virtue of the changed rvalue rules and swap signatures from Summit.
Proposed resolution: