Use FMT_NOEXCEPT instead of noexcept directly

Otherwise breaks on compilers without noexcept support
This commit is contained in:
Tobias Hammer 2020-01-13 18:18:44 +01:00 committed by Victor Zverovich
parent 65ac626c58
commit 77165fdf85

View File

@ -878,11 +878,11 @@ inline Char* format_decimal(Char* buffer, UInt value, int num_digits,
return end;
}
template <typename Int> constexpr int digits10() noexcept {
template <typename Int> constexpr int digits10() FMT_NOEXCEPT {
return std::numeric_limits<Int>::digits10;
}
template <> constexpr int digits10<int128_t>() noexcept { return 38; }
template <> constexpr int digits10<uint128_t>() noexcept { return 38; }
template <> constexpr int digits10<int128_t>() FMT_NOEXCEPT { return 38; }
template <> constexpr int digits10<uint128_t>() FMT_NOEXCEPT { return 38; }
template <typename Char, typename UInt, typename Iterator, typename F>
inline Iterator format_decimal(Iterator out, UInt value, int num_digits,