From 77165fdf85ebb9fcf11c505e38ee9e8d0687bdb6 Mon Sep 17 00:00:00 2001 From: Tobias Hammer Date: Mon, 13 Jan 2020 18:18:44 +0100 Subject: [PATCH] Use FMT_NOEXCEPT instead of noexcept directly Otherwise breaks on compilers without noexcept support --- include/fmt/format.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,