How can I fix 'Expecting an Identifier' on max and min in this line of Code?

CDev-8220 425 Reputation points
2025-07-17T22:00:26.92+00:00

float maxNum = std::numeric_limits<float>::max();

Developer technologies | C++
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 123.6K Reputation points
    2025-07-17T22:21:11.3933333+00:00

    Try to add #define NOMINMAX before #include <Windows.h>.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.