Compare commits

...

4 Commits

Author SHA1 Message Date
Daniel Lemire
a3e64e1259
Merge c086f538e87b31c48fb2b6e1ed743e8141e3695c into 7b21183a93c4a8943a2d384f207537d7330547e1 2025-11-04 10:07:08 +09:00
Anders Dalvander
c086f538e8
Merge branch 'main' into adding_explicit_cxx23_specialization 2025-09-29 21:35:46 +02:00
Daniel Lemire
b370ee2976 lint 2025-09-29 15:05:33 -04:00
Daniel Lemire
b3dd09bb86 specialize for std::float32_t and std::float64_t explicitly 2025-09-29 14:14:01 -04:00

View File

@ -1251,6 +1251,16 @@ constexpr chars_format adjust_for_feature_macros(chars_format fmt) {
;
}
} // namespace detail
#ifdef __STDCPP_FLOAT64_T__
template <>
struct binary_format<std::float64_t> : public binary_format<double> {};
#endif
#ifdef __STDCPP_FLOAT32_T__
template <>
struct binary_format<std::float32_t> : public binary_format<float> {};
#endif
} // namespace fast_float
#endif