This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/41628] _GLIBCXX_DEBUG feature: check for unstable iterators
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2009 09:43:27 -0000
- Subject: [Bug libstdc++/41628] _GLIBCXX_DEBUG feature: check for unstable iterators
- References: <bug-41628-7596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from redi at gcc dot gnu dot org 2009-10-08 09:43 -------
(In reply to comment #1)
> std::set<int>::iterator i = s.insert(5);
Oops, that should be
std::set<int>::iterator i = s.insert(5).first;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41628