You are probably including windows.h somewhere, which defines macros named max and min.
You can #define NOMINMAX before including windows.h to prevent it from defining those macros, or you can prevent macro invocation by using an extra set of parentheses: