Why is std :: numeric_limits <long long> :: max () not working?
1 answer
This call maxmay affect the macro of the "evil" max preprocessor defined in the headers of the Windows SDK, which you probably included (directly or indirectly).
The option is to prevent the preprocessor macro from executing maxusing an extra pair of parentheses :
... = (std::numeric_limits<long long>::max)();
#define #NOMINMAX, Windows. min max.
, Windows (, GDI +) Win32 min max, .
+6