What problems could I get when defining NOMINMAX
before anything else in my program?
As far as I know, this will make <Windows.h>
not define the min
and max
macros such that many conflicts with the STL, e.g. std::min()
, std::max()
, or std::numeric_limits<T>::min()
are resolved.
Am I right in the assumption that only Windows-specific and legacy code will have problems?
Almost all libraries should not depend on min()
and max()
defined as macros?
Edit: Will there be be problems with other Windows headers?