additional fix for bfloat16_t. Sorry, I can't compile it's locally.

This commit is contained in:
IRainman 2025-05-07 22:55:48 +03:00
parent 7bac32408e
commit a550415314

View File

@ -232,8 +232,7 @@ using parse_options = parse_options_t<char>;
namespace fast_float { namespace fast_float {
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 bool fastfloat_really_inline constexpr bool cpp20_and_in_constexpr() noexcept {
cpp20_and_in_constexpr() noexcept {
#if FASTFLOAT_HAS_IS_CONSTANT_EVALUATED #if FASTFLOAT_HAS_IS_CONSTANT_EVALUATED
return std::is_constant_evaluated(); return std::is_constant_evaluated();
#else #else
@ -922,7 +921,7 @@ binary_format<std::bfloat16_t>::smallest_power_of_ten() {
} }
template <> template <>
inline constexpr uint16_t binary_format<std::bfloat16_t>::max_digits() { inline constexpr am_digits binary_format<std::bfloat16_t>::max_digits() {
return 98; return 98;
} }
#endif // __STDCPP_BFLOAT16_T__ #endif // __STDCPP_BFLOAT16_T__