Try to add #define NOMINMAX
before #include <Windows.h>
.
How can I fix 'Expecting an Identifier' on max and min in this line of Code?
CDev-8220
425
Reputation points
float maxNum = std::numeric_limits<float>::max();
Developer technologies | C++
Accepted answer
-
Viorel 123.6K Reputation points
2025-07-17T22:21:11.3933333+00:00