#define NOMINMAX using std::min/max

If you’re really desperate, put parentheses around the function names:

(std::min)(x, y);

This syntax won’t apply a function-like macro. (Formally, to apply a function-like macro the name of the macro must be followed by optional white space then a ‘(‘.)

Leave a Comment