Title
tuple copy constructor
Status
resolved
Section
[tuple.cnstr]
Submitter
Alisdair Meredith

Created on 2009-05-23.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Change [tuple.tuple] and [tuple.cnstr] p4:

requires CopyConstructible<Types>... tuple(const tuple&) = default;
Date: 2010-11-20.00:05:46

[ 2009-10 Santa Cruz: ]

NAD EditorialResolved. Solved by N2994.

Date: 2009-05-27.00:00:00

[ 2009-05-27 Daniel adds: ]

This would solve one half of the suggested changes in 801.

Date: 2009-05-23.00:00:00

The copy constructor for the tuple template is constrained. This seems an unusual strategy, as the copy constructor will be implicitly deleted if the constraints are not met. This is exactly the same effect as requesting an =default; constructor. The advantage of the latter is that it retains triviality, and provides support for tuples as literal types if issue 1116 is also accepted.

Actually, it might be worth checking with core if a constrained copy constructor is treated as a constructor template, and as such does not suppress the implicit generation of the copy constructor which would hide the template in this case.

History
Date User Action Args
2010-11-19 19:04:45adminsetstatus: nad editorial -> resolved
2010-10-21 18:28:33adminsetmessages: + msg805
2010-10-21 18:28:33adminsetmessages: + msg804
2010-10-21 18:28:33adminsetmessages: + msg803
2009-05-23 00:00:00admincreate