[Bug libstdc++/69782] [6 Regression] defining min() macro causes thousand of lines of error messages
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 12 18:16:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69782
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #4)
> it can be less than trivial. A fairly easy way to avoid having to deal with
> the problem in libstdc++ is to enclose every call to min and max in public
> libstdc++ headers in parentheses: z = (min)(x, y).
That doesn't help for std::numeric_limits<int>::min()
More information about the Gcc-bugs
mailing list