mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-26 12:35:32 +00:00
Add a missing num_bits specialization
This commit is contained in:
parent
7e58af4eaf
commit
0cdee904a4
@ -1491,7 +1491,8 @@ constexpr unsigned long long make_descriptor() {
|
|||||||
template <typename T, typename Char>
|
template <typename T, typename Char>
|
||||||
#if FMT_CLANG_VERSION && FMT_CLANG_VERSION <= 1500
|
#if FMT_CLANG_VERSION && FMT_CLANG_VERSION <= 1500
|
||||||
// https://github.com/fmtlib/fmt/issues/3796
|
// https://github.com/fmtlib/fmt/issues/3796
|
||||||
struct type_is_unformattable_for {};
|
struct type_is_unformattable_for {
|
||||||
|
};
|
||||||
#else
|
#else
|
||||||
struct type_is_unformattable_for;
|
struct type_is_unformattable_for;
|
||||||
#endif
|
#endif
|
||||||
|
@ -462,6 +462,7 @@ template <typename T> constexpr auto num_bits() -> int {
|
|||||||
}
|
}
|
||||||
// std::numeric_limits<T>::digits may return 0 for 128-bit ints.
|
// std::numeric_limits<T>::digits may return 0 for 128-bit ints.
|
||||||
template <> constexpr auto num_bits<int128_opt>() -> int { return 128; }
|
template <> constexpr auto num_bits<int128_opt>() -> int { return 128; }
|
||||||
|
template <> constexpr auto num_bits<uint128_opt>() -> int { return 128; }
|
||||||
template <> constexpr auto num_bits<uint128_fallback>() -> int { return 128; }
|
template <> constexpr auto num_bits<uint128_fallback>() -> int { return 128; }
|
||||||
|
|
||||||
// A heterogeneous bit_cast used for converting 96-bit long double to uint128_t
|
// A heterogeneous bit_cast used for converting 96-bit long double to uint128_t
|
||||||
|
Loading…
x
Reference in New Issue
Block a user