Commit 9acf89fe authored by parkertomatoes's avatar parkertomatoes Committed by Victor Zverovich

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

parent 9ea42fb2
...@@ -28,7 +28,7 @@ template <bool IsSigned> struct int_checker { ...@@ -28,7 +28,7 @@ template <bool IsSigned> struct int_checker {
template <> struct int_checker<true> { template <> struct int_checker<true> {
template <typename T> static bool fits_in_int(T value) { 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>(); value <= max_value<int>();
} }
static bool fits_in_int(int) { return true; } static bool fits_in_int(int) { return true; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment