From b3dd09bb86479e42e7d440817884d806a3f47e84 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 29 Sep 2025 14:14:01 -0400 Subject: [PATCH] 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 62d199c..3f3aa57 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