From a189bcd8f8b6608665f62b332d69a18679e19395 Mon Sep 17 00:00:00 2001 From: Josip Basic Date: Wed, 27 Sep 2023 08:22:36 +0200 Subject: [PATCH] Skip long_double_value visitor when FMT_USE_FLOAT128 is not defined --- include/fmt/core.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fmt/core.h b/include/fmt/core.h index c50822a5..8ada0535 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -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: