Created on 2009-02-03.00:00:00 last changed 172 months ago
Proposed resolution:
Change [move.iterators]/2:
-2- [Example:
setlist<string> s; // populate thesetlist s vector<string> v1(s.begin(), s.end()); // copies strings into v1 vector<string> v2(make_move_iterator(s.begin()), make_move_iterator(s.end())); // moves strings into v2-- end example]
[ Batavia (2009-05): ]
We agree with the proposed resolution. Move to NAD Editorial.
[move.iterators] has an incorrect example:
-2- [Example:
set<string> s; // populate the set s vector<string> v1(s.begin(), s.end()); // copies strings into v1 vector<string> v2(make_move_iterator(s.begin()), make_move_iterator(s.end())); // moves strings into v2-- end example]
One can not move from a set because the iterators return const references.
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-10-21 18:28:33 | admin | set | messages: + msg4666 |
2010-10-21 18:28:33 | admin | set | messages: + msg4665 |
2009-02-03 00:00:00 | admin | create |