Title
Swap for tuple needs to be conceptualized
Status
nad concepts
Section
[tuple.swap]
Submitter
Daniel Krügler

Created on 2008-10-04.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

  1. In both [tuple.general]/2 and [tuple.special] change

    template <class Swappable... Types>
    void swap(tuple<Types...>& x, tuple<Types...>& y);
    
  2. In [tuple.tuple], class tuple definition and in [tuple.swap], change

    requires Swappable<Types>...void swap(tuple&);
    
  3. In [tuple.swap] remove the current requires-clause, which says:

    Requires: Each type in Types shall be Swappable

Date: 2010-10-21.18:28:33

[ Batavia (2009-05): ]

We observed that all the proposed changes have already been applied to the Working Draft, rendering this issue moot.

Move to NAD.

Date: 2009-05-01.00:00:00

[ 2009-05-01 Daniel adds: ]

As of the recent WP (N2857), this issue is now completely covered by editorial changes (including the third bullet), therefore I unconditionally recommend NAD.

Date: 2010-10-21.18:28:33

[ Post Summit Daniel adds ]

This is now NAD Editorial (addressed by N2844) except for item 3 in the proposed wording.

Date: 2008-10-04.00:00:00

Issue 522 was accepted after tuple had been conceptualized, therefore this step needs to be completed.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg4362
2010-10-21 18:28:33adminsetmessages: + msg4361
2010-10-21 18:28:33adminsetmessages: + msg4360
2010-10-21 18:28:33adminsetmessages: + msg4359
2008-10-04 00:00:00admincreate