diff --git a/include/fmt/format.h b/include/fmt/format.h index 50cf37c9..af57862b 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -878,11 +878,11 @@ inline Char* format_decimal(Char* buffer, UInt value, int num_digits, return end; } -template constexpr int digits10() noexcept { +template constexpr int digits10() FMT_NOEXCEPT { return std::numeric_limits::digits10; } -template <> constexpr int digits10() noexcept { return 38; } -template <> constexpr int digits10() noexcept { return 38; } +template <> constexpr int digits10() FMT_NOEXCEPT { return 38; } +template <> constexpr int digits10() FMT_NOEXCEPT { return 38; } template inline Iterator format_decimal(Iterator out, UInt value, int num_digits,