Mitigate MSVC issue with min/max macros

This commit is contained in:
Joseph Antoon 2019-12-15 22:11:46 -05:00
parent 9ea42fb26e
commit 6d5e1677ec

View File

@ -28,7 +28,7 @@ template <bool IsSigned> struct int_checker {
template <> struct int_checker<true> {
template <typename T> static bool fits_in_int(T value) {
return value >= std::numeric_limits<int>::min() &&
return value >= (std::numeric_limits<int>::min)() &&
value <= max_value<int>();
}
static bool fits_in_int(int) { return true; }