Commit 77165fdf authored by Tobias Hammer's avatar Tobias Hammer Committed by Victor Zverovich

Use FMT_NOEXCEPT instead of noexcept directly

Otherwise breaks on compilers without noexcept support
parent 65ac626c
...@@ -878,11 +878,11 @@ inline Char* format_decimal(Char* buffer, UInt value, int num_digits, ...@@ -878,11 +878,11 @@ inline Char* format_decimal(Char* buffer, UInt value, int num_digits,
return end; return end;
} }
template <typename Int> constexpr int digits10() noexcept { template <typename Int> constexpr int digits10() FMT_NOEXCEPT {
return std::numeric_limits<Int>::digits10; return std::numeric_limits<Int>::digits10;
} }
template <> constexpr int digits10<int128_t>() noexcept { return 38; } template <> constexpr int digits10<int128_t>() FMT_NOEXCEPT { return 38; }
template <> constexpr int digits10<uint128_t>() noexcept { return 38; } template <> constexpr int digits10<uint128_t>() FMT_NOEXCEPT { return 38; }
template <typename Char, typename UInt, typename Iterator, typename F> template <typename Char, typename UInt, typename Iterator, typename F>
inline Iterator format_decimal(Iterator out, UInt value, int num_digits, inline Iterator format_decimal(Iterator out, UInt value, int num_digits,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment