Mitigate MSVC issue with min/max macros (#1480)

This commit is contained in:
parkertomatoes 2019-12-16 11:24:00 -05:00 committed by Victor Zverovich
parent 9ea42fb26e
commit 9acf89fef6

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; }