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++/49386] #undef min/max is dependent on order if #include


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49386

--- Comment #2 from Takaya Saito <gintensubaru at gmail dot com> 2011-06-13 08:09:17 UTC ---
(In reply to comment #1)
> max is a term defiend in the standard library. It is undefined behaviour if you
> #define it to something else when you are using standard library headers. Don't
> do that :)

Yes, that's right.  But <windows.h> does it.


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