This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/69782] [6 Regression] defining min() macro causes thousand of lines of error messages


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()

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]