You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the library on Windows, with the header Windows.h included, I get an error in the places that std::min is used. Wherever min is used, the macro expands to:
(a < b) ? a : b
This is because Microsoft defines min and max in its headers.
Solution
To fix this you must define NOMINMAX before including Windows.h.
Problem
When using the library on Windows, with the header Windows.h included, I get an error in the places that
std::min
is used. Wherevermin
is used, the macro expands to:This is because Microsoft defines
min
andmax
in its headers.Solution
To fix this you must define
NOMINMAX
before including Windows.h.Proposed Fix
I would recommend performing a check and if on Windows, defining
NOMINMAX
.The text was updated successfully, but these errors were encountered: