Skip long_double_value visitor when FMT_USE_FLOAT128 is not defined

This commit is contained in:
Josip Basic 2023-09-27 08:22:36 +02:00 committed by GitHub
parent 2dd4fa8742
commit a189bcd8f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1690,7 +1690,11 @@ FMT_CONSTEXPR FMT_INLINE auto visit_format_arg(
case detail::type::double_type:
return vis(arg.value_.double_value);
case detail::type::long_double_type:
#if FMT_USE_FLOAT128
return vis(arg.value_.long_double_value);
#else
break;
#endif
case detail::type::cstring_type:
return vis(arg.value_.string.data);
case detail::type::string_type: