This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/64814] std::copy_n advances InputIterator one *less* time than necessary.
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 27 Jan 2015 16:28:56 +0000
- Subject: [Bug libstdc++/64814] std::copy_n advances InputIterator one *less* time than necessary.
- Auto-submitted: auto-generated
- References: <bug-64814-4 at http dot gcc dot gnu dot org/bugzilla/>
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.