|
|
|
|
|
by adzm
86 days ago
|
|
> A long time ago in the Microsoft C (and later C++) dev envs there were macros named "min" and "max", which I thought were terrible names for macros. Yeah, this is still in windows.h unless you #define NOMINMAX I remember having to guard against this in some inline code by surrounding the c++ calls with parenthesis, eg `(std::min)(a, b)` |
|
I usually wrap Windows.h in a header followed by 100 #undefs to contain the disease.