diff --git a/include/fmt/format.h b/include/fmt/format.h index 79bf52569f38..477f72d773f1 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2752,7 +2752,7 @@ template ::value&& has_isfinite::value)> FMT_CONSTEXPR20 bool isfinite(T value) { constexpr T inf = T(std::numeric_limits::infinity()); - if (is_constant_evaluated()) + if (is_constant_evaluated(true)) return !detail::isnan(value) && value < inf && value > -inf; return std::isfinite(value); }