From f580d17d4c12778a3c46e8879087b5a7bdb3726b Mon Sep 17 00:00:00 2001 From: Chloe <25387744+qimiko@users.noreply.github.com> Date: Thu, 14 Sep 2023 01:27:33 -0700 Subject: [PATCH] Replace usage of C++17 library feature with C++11 --- include/fmt/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index f9e3b7d6..158a2d5a 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2541,8 +2541,8 @@ FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx) decltype(arg_mapper().map(std::declval())), typename strip_named_arg::type>; #if defined(__cpp_if_constexpr) - if constexpr (std::is_default_constructible_v< - formatter>) { + if constexpr (std::is_default_constructible< + formatter>::value) { return formatter().parse(ctx); } else { type_is_unformattable_for _;