This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/17373] std::set::erase(const_iterator) doesn't output error on compilation
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Sep 2004 12:17:11 -0000
- Subject: [Bug libstdc++/17373] std::set::erase(const_iterator) doesn't output error on compilation
- References: <20040909121347.17373.romainbehar@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-09-09 12:17 -------
No, the code is OK. A const iterator cannot be used to directly modify the
container, but you can pass it to erase() without any problems.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Component|c++ |libstdc++
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17373