Replace usage of C++17 library feature with C++11

This commit is contained in:
Chloe 2023-09-14 01:27:33 -07:00 committed by GitHub
parent d4987546a4
commit f580d17d4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2541,8 +2541,8 @@ FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx)
decltype(arg_mapper<context>().map(std::declval<const T&>())),
typename strip_named_arg<T>::type>;
#if defined(__cpp_if_constexpr)
if constexpr (std::is_default_constructible_v<
formatter<mapped_type, char_type>>) {
if constexpr (std::is_default_constructible<
formatter<mapped_type, char_type>>::value) {
return formatter<mapped_type, char_type>().parse(ctx);
} else {
type_is_unformattable_for<T, char_type> _;