This line works correctly in a small test program, but in the program for which I want it, I get the following compiler complaints:
#include
Other solution would be to wrap function name with parenthesis like this: (std::numeric_limits::max)(). Same applies to std::max.
(std::numeric_limits::max)()
std::max
Not sure it's good solution for this... NOMINMAX is better IMO, but this could be an option in some cases.