Tuesday, 15 July 2014

c++ - Error C2589 on std::numeric_limits<double>::min() -


When I try to compile some code (no), I get C2589 '(': right of Invalid token '::':

on this line:

  maxPosition [0] = std :: numeric_limits & lt; double & gt;: minute ();  

I think it's already defined a minimum () macro, but why is the compiler not taking (minimum) from the specified namespace instead of the macro?

But why compiler macros Instead of taking the minimum () from the specified name space?

Because the Marriage does not care about your namespace, language words or about your compiler . The first processing is first .

In other words, the compiler only sees what is omitted after the preprocessing step and min some replacement string Was replaced by, and the result is that The dealer saw


No comments:

Post a Comment