This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/25304] std::fill_n, std::generate_n incorrect signature
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2005 00:08:47 -0000
- Subject: [Bug libstdc++/25304] std::fill_n, std::generate_n incorrect signature
- References: <bug-25304-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from sebor at roguewave dot com 2005-12-08 00:08 -------
FWIW, I think Andrew makes a good point in comment #1. The algorithms really
should return the iterator, otherwise the caller may not be able to find out
the state of the iterator after the algorithm returns (e.g., when the iterator
is ostreambuf_iterator). It may not be a bad idea to open an issue (or at least
bring it up on the reflector).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25304