Title
Circular definition of promise::swap
Status
resolved
Section
[futures.promise]
Submitter
Jonathan Wakely

Created on 2009-12-26.00:00:00 last changed 170 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Change [futures.promise] paragraph 12

void swap(promise& other);

12 Effects: swap(*this, other) Exchanges the associated states of *this and other.

13 ...

Throws: Nothing.

Date: 2010-10-21.18:28:33

Rationale:

Solved by N3058.

Date: 2010-12-05.00:09:22

[ 2010 Pittsburgh: ]

Moved to NAD EditorialResolved. Rationale added below.

Date: 2010-01-14.00:00:00

[ 2010-01-14 Moved to Tentatively Ready after 5 positive votes on c++std-lib. ]

Date: 2010-01-13.00:00:00

[ 2010-01-13 Daniel added "Throws: Nothing." ]

Date: 2009-12-26.00:00:00

[futures.promise]/12 defines the effects of promise::swap(promise&) as

void swap(promise& other);

12 Effects: swap(*this, other)

and [futures.promise]/25 defines swap(promise<R&>, promise<R>&) as

template <class R>
  void swap(promise<R>& x, promise<R>& y);

25 Effects: x.swap(y).

History
Date User Action Args
2010-12-05 00:09:22adminsetstatus: nad editorial -> resolved
2010-10-21 18:28:33adminsetmessages: + msg1508
2010-10-21 18:28:33adminsetmessages: + msg1507
2010-10-21 18:28:33adminsetmessages: + msg1506
2010-10-21 18:28:33adminsetmessages: + msg1505
2010-10-21 18:28:33adminsetmessages: + msg1504
2009-12-26 00:00:00admincreate