Closed frederic-mahe closed 3 years ago
It currently fails to compile on some platforms if MIN and MAX are removed.
Is this still the case or can we switch to using std::min
and std::max
? If not what are the offending platforms?
Replaced by std::min
and std::max
in commit 0420591b35b18618c5f307e231faca73ee1d2096.
There's a std::min and std::max in C++. So, could these macros be removed?
or do we need them for systems that do not implement the standard library? (eg.; Microsoft Windows); or because of a conflict between stdlib.h/cstdlib and the STL?
Bjarne Stroustrup recommends to use templates rather than macros, so in our case that would be: