This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/31556] find_if uses operator! instead of conversion to bool
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Apr 2007 19:26:37 -0000
- Subject: [Bug libstdc++/31556] find_if uses operator! instead of conversion to bool
- References: <bug-31556-12972@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pcarlini at suse dot de 2007-04-12 20:26 -------
Thanks Chris. Apparently, we don't have *that* many ! on the return of the
predicates or other logicals, maybe ~10. The task of fixing all of them seems
manageable rather easily. Let's make sure I understand: it would be just matter
of explicitely converting to bool, like !bool(__pred(*__first)), right?
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pcarlini at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31556