From 0cdee904a480f50c756bd05e752c4d067a823fec Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 12 Jan 2024 07:20:12 -0800 Subject: [PATCH] Add a missing num_bits specialization --- include/fmt/base.h | 3 ++- include/fmt/format.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index e39580849f99..cd2c7df503bd 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -1491,7 +1491,8 @@ constexpr unsigned long long make_descriptor() { template #if FMT_CLANG_VERSION && FMT_CLANG_VERSION <= 1500 // https://github.com/fmtlib/fmt/issues/3796 -struct type_is_unformattable_for {}; +struct type_is_unformattable_for { +}; #else struct type_is_unformattable_for; #endif diff --git a/include/fmt/format.h b/include/fmt/format.h index 6c94d2d00760..16e2e1755a8f 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -462,6 +462,7 @@ template constexpr auto num_bits() -> int { } // std::numeric_limits::digits may return 0 for 128-bit ints. template <> constexpr auto num_bits() -> int { return 128; } +template <> constexpr auto num_bits() -> int { return 128; } template <> constexpr auto num_bits() -> int { return 128; } // A heterogeneous bit_cast used for converting 96-bit long double to uint128_t