diff --git a/include/boost/multiprecision/detail/functions/pow.hpp b/include/boost/multiprecision/detail/functions/pow.hpp index b6e007b2..179e37f4 100644 --- a/include/boost/multiprecision/detail/functions/pow.hpp +++ b/include/boost/multiprecision/detail/functions/pow.hpp @@ -303,7 +303,7 @@ void eval_exp(T& result, const T& x) exp_type n; eval_convert_to(&n, result); - if (n == std::numeric_limits::max()) + if (n == (std::numeric_limits::max)()) { // Exponent is too large to fit in our exponent type: if (isneg)