Created on 2013-02-14.00:00:00 last changed 90 months ago
[ 2017-06-02 Issues Telecon ]
This change has been made in the Ranges TS.
Resolve as NAD
[ 2017-02 in Kona, LEWG recommends NAD ]
Potentially breaks lots of things. Cannot overload on return type. Pair, tuple, or struct return? New name? Needs paper with a new algorithm (copy_n_works)? Not an issue for istream iterators (can get stream and get a new iterator). Don’t use this function, use ranges.
[ 2016-08 Chicago ]
Tues PM: refer to LEWG
copy_n() and uninitialized_copy_n() only return the output iterator, and not the input iterator. Likely the interface was simply copied from the original STL. Unfortunately the interface in the original STL contains a bug.
copy_n() and uninitialized_copy_n() must return the resulting input iterator as well as the output iterator (I would suggest returning a pair). Without this, there is no way to continue reading from an actual input iterator — and if it is really a forward iterator, it will cost n increments to get back to where you were.History | |||
---|---|---|---|
Date | User | Action | Args |
2017-06-05 15:41:21 | admin | set | messages: + msg9220 |
2017-06-05 15:41:21 | admin | set | messages: + msg9219 |
2017-06-05 15:41:21 | admin | set | status: lewg -> nad |
2016-08-03 12:32:27 | admin | set | messages: + msg8353 |
2016-08-03 12:32:27 | admin | set | status: new -> lewg |
2013-02-14 00:00:00 | admin | create |