Title
Should initializer-list constructors move elements?
Status
nad
Section
[sequence.reqmts]
Submitter
Sean Hunt

Created on 2009-11-05.00:00:00 last changed 164 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

There is no consensus at this time within EWG or CWG to make the required language changes. Therefore this is not something that the LWG can even consider. Should such language changes be made for a future standard, no doubt there would need to be an accompanying library impact survey.

Date: 2009-11-10.00:00:00

[ 2009-11-10 Howard adds: ]

I've moved this issue to Tentatively NAD after 5 positive votes on c++std-lib, and added a rationale below.

Date: 2009-11-05.00:00:00

According to [sequence.reqmts], X(il) is equivalent to X(il.begin(), il.end()). Should it instead be equivalent to X(move_iterator(il.begin()), move_iterator(il.end())) so that needless copies are not made? This doesn't seem ideal either - it may make more sense to provide two overloads for the constructor, one for move and one for copy.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1349
2010-10-21 18:28:33adminsetmessages: + msg1348
2009-11-05 00:00:00admincreate