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.

1164. promise::swap should pass by rvalue reference

Section: 33.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.


Addresses UK 341


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


Change promise::swap to take an rvalue reference.


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: