This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/12532] remove_if fails with Functor object
- From: "peturr02 at ru dot is" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2003 14:16:10 -0000
- Subject: [Bug libstdc++/12532] remove_if fails with Functor object
- References: <20031007121401.12532.maierkom@rcs.ei.tum.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12532
------- Additional Comments From peturr02 at ru dot is 2003-10-07 14:16 -------
This is not a bug. set's iterators are non-modifyable, but remove_if
requires modifyable iterators. You probably want remove_copy_if or
set_difference.