From 571a9b7b266a6ec6aa4c3da620b23f1d232f8cfa Mon Sep 17 00:00:00 2001 From: Chloe <25387744+qimiko@users.noreply.github.com> Date: Sat, 16 Sep 2023 08:07:03 -0700 Subject: [PATCH] Replace usage of C++17 library feature with C++11 (#3638) --- 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 77c2d240..153b7aab 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2543,8 +2543,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 _;