This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/29989] missed #undef min/max in <limits>
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Nov 2006 13:38:03 -0000
- Subject: [Bug libstdc++/29989] missed #undef min/max in <limits>
- References: <bug-29989-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pcarlini at suse dot de 2006-11-26 13:38 -------
As a matter of fact, I think that the undefs in stl_algobase.h are legacy
stuff, and should go away. In my opinion, we should always error in such cases,
because nobody knows whether the user means his own max / min macro, or the
facility provided by the library, when he writes max / min after <algorithm>.
This bug is actually a duplicate of 23273, but I'm keeping it open for now in
order to solicitate feedback about the above point...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29989