promise
invertedSection: 32.10.6 [futures.promise] Status: Resolved Submitter: Alisdair Meredith Opened: 2009-03-12 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 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
.
[ Summit: ]
Agree, move to Review.
[ Batavia (2009-05): ]
We recommend deferring this issue until after Detlef's paper (on futures) has been issued.
[ 2009-10 Santa Cruz: ]
NAD EditorialResolved. Addressed by N2997.
Proposed resolution:
Strike 32.10.6 [futures.promise] p6 and change p7:
promise& operator=(promise&& rhs);
-6- Effects: move assigns its associated state torhs
.-7- Postcondition:
associated state of*this
has no associated state.*this
is the same as the associated state ofrhs
before the call.rhs
has no associated state.