Title
Missing description of packaged_task member swap, missing non-member swap
Status
resolved
Section
[futures.task]
Submitter
Daniel Krügler

Created on 2009-03-22.00:00:00 last changed 171 months ago

Messages

Date: 2010-12-05.14:14:49

Proposed resolution:

  1. In [futures.task], immediately after the definition of class template packaged_task add:

    
    template<class R, class... Argtypes>
    void swap(packaged_task<R(ArgTypes...)>&, packaged_task<R(ArgTypes...)>&);
    
    
  2. At the end of [futures.task] (after p. 20), add the following prototype description:

    
    template<class R, class... Argtypes>
    void swap(packaged_task<R(ArgTypes...)>& x, packaged_task<R(ArgTypes...)>& y);
    

    Effects: x.swap(y)

    Throws: Nothing.

Date: 2010-10-21.18:28:33

Rationale:

Solved by N3058.

Date: 2010-12-05.14:14:49

[ 2010 Pittsburgh: ]

Moved to NAD EditorialResolved. Rationale added below.

Date: 2010-10-21.18:28:33

[ 2009-10 post-Santa Cruz: ]

Move to Tentatively Ready, removing bullet 3 from the proposed resolution but keeping the other two bullets.

Date: 2009-05-24.00:00:00

[ 2009-05-24 Daniel removed part 2 of the proposed resolution. ]

Date: 2010-10-21.18:28:33

[ Batavia (2009-05): ]

Alisdair notes that paragraph 2 of the proposed resolution has already been applied in the current Working Draft.

We note a pending future-related paper by Detlef; we would like to wait for this paper before proceeding.

Move to Open.

Date: 2009-03-22.00:00:00

Class template packaged_task in [futures.task] shows a member swap declaration, but misses to document it's effects (No prototype provided). Further on this class misses to provide a non-member swap.

History
Date User Action Args
2010-12-05 14:14:49adminsetstatus: nad editorial -> resolved
2010-10-21 18:28:33adminsetmessages: + msg673
2010-10-21 18:28:33adminsetmessages: + msg672
2010-10-21 18:28:33adminsetmessages: + msg671
2010-10-21 18:28:33adminsetmessages: + msg670
2010-10-21 18:28:33adminsetmessages: + msg669
2010-10-21 18:28:33adminsetmessages: + msg668
2009-03-22 00:00:00admincreate