From b3dd09bb86479e42e7d440817884d806a3f47e84 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 29 Sep 2025 14:14:01 -0400 Subject: [PATCH 1/2] specialize for std::float32_t and std::float64_t explicitly --- include/fast_float/float_common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index 62d199ca..3f3aa571 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -1246,6 +1246,16 @@ constexpr chars_format adjust_for_feature_macros(chars_format fmt) { } } // namespace detail + +#ifdef __STDCPP_FLOAT64_T__ +template <> +struct binary_format : public binary_format {}; +#endif +#ifdef __STDCPP_FLOAT32_T__ +template <> +struct binary_format : public binary_format {}; +#endif + } // namespace fast_float #endif From b370ee2976a32e81572a62e53f01952e8343d246 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 29 Sep 2025 15:05:33 -0400 Subject: [PATCH 2/2] lint --- include/fast_float/float_common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index 3f3aa571..bd930b95 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -1246,7 +1246,6 @@ constexpr chars_format adjust_for_feature_macros(chars_format fmt) { } } // namespace detail - #ifdef __STDCPP_FLOAT64_T__ template <> struct binary_format : public binary_format {};