This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/64814] std::copy_n advances InputIterator one *less* time than necessary.


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64814

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The current behaviour is decades old, coming from the copy_n in the SGI STL,
and like the standard https://www.sgi.com/tech/stl/copy_n.html says nothing
about postconditions for the input iterator.

Note http://cplusplus.github.io/LWG/lwg-active.html#2242 though.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]