Title
Move assignment of promise inverted
Status
resolved
Section
[futures.promise]
Submitter
Alisdair Meredith

Created on 2009-03-12.00:00:00 last changed 169 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Strike [futures.promise] p6 and change p7:

promise& operator=(promise&& rhs);

-6- Effects: move assigns its associated state to rhs.

-7- Postcondition: *this has no associated state. associated state of *this is the same as the associated state of rhs before the call. rhs has no associated state.

Date: 2010-12-05.14:14:49

[ 2009-10 Santa Cruz: ]

NAD EditorialResolved. Addressed by N2997.

Date: 2010-10-21.18:28:33

[ Batavia (2009-05): ]

We recommend deferring this issue until after Detlef's paper (on futures) has been issued.

Date: 2010-10-21.18:28:33

[ Summit: ]

Agree, move to Review.

Date: 2012-10-21.13:19:07

Addresses UK 339 [CD1]

Move assignment is going in the wrong direction, assigning from *this to the passed rvalue, and then returning a reference to an unusable *this.

History
Date User Action Args
2010-12-05 14:14:49adminsetstatus: nad editorial -> resolved
2010-10-21 18:28:33adminsetmessages: + msg489
2010-10-21 18:28:33adminsetmessages: + msg488
2010-10-21 18:28:33adminsetmessages: + msg487
2010-10-21 18:28:33adminsetmessages: + msg486
2009-03-12 00:00:00admincreate