C++ - an example of undefining min, max macro with VC++

less than 1 minute read

1
2
3
4
5
6
7
#pragma push_macro("min")
#pragma push_macro("max")
#undef min
#undef max
// call min, max
#pragma pop_macro("min")
#pragma pop_macro("max")