mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-02 12:06:11 +00:00
Replace usage of C++17 library feature with C++11 (#3638)
This commit is contained in:
parent
6c088be8ec
commit
571a9b7b26
@ -2543,8 +2543,8 @@ FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx)
|
|||||||
decltype(arg_mapper<context>().map(std::declval<const T&>())),
|
decltype(arg_mapper<context>().map(std::declval<const T&>())),
|
||||||
typename strip_named_arg<T>::type>;
|
typename strip_named_arg<T>::type>;
|
||||||
#if defined(__cpp_if_constexpr)
|
#if defined(__cpp_if_constexpr)
|
||||||
if constexpr (std::is_default_constructible_v<
|
if constexpr (std::is_default_constructible<
|
||||||
formatter<mapped_type, char_type>>) {
|
formatter<mapped_type, char_type>>::value) {
|
||||||
return formatter<mapped_type, char_type>().parse(ctx);
|
return formatter<mapped_type, char_type>().parse(ctx);
|
||||||
} else {
|
} else {
|
||||||
type_is_unformattable_for<T, char_type> _;
|
type_is_unformattable_for<T, char_type> _;
|
||||||
|
Loading…
Reference in New Issue
Block a user