In your compiler settings, have NOMINMAX
be defined. This will stop the Windows headers from trying to define the min
and max
macros. This is the correct way to handle this issue; trying to #undef
it is unreliable and error-prone. Search for NOMINMAX
for more information on this flag.
You can also do this in a pinch, but don't make it a habit:
SUMOReal distance = (std::numeric_limits<SUMOReal>::max)();