diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 1b59fde3..991ba3fc 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -976,11 +976,11 @@ integer_parser(const std::string& text, T& value) US limit = 0; if (negative) { - limit = static_cast(std::abs(static_cast(std::numeric_limits::min()))); + limit = static_cast(std::abs(static_cast((std::numeric_limits::min)()))); } else { - limit = std::numeric_limits::max(); + limit = (std::numeric_limits::max)(); } if (base != 0 && result > limit / base)