Windows header shadows STL min/max implementation
lkotsonis opened this issue · comments
When including windows.h
, the std::min
and std::max
definitions from <aglorithm>
are shadowed with a macro defined through the Windows header. This is disabled by using #define NOMINMAX
but I guess it would be very restrictive to have it hard-coded on the mio headers. Would it make sense to have some sort of option in CMAKE to enable/disable this? I can make a PR if you think it's a good idea.
Dear god, I just saw the flag on CMake. Sorry about that.