Skip to content
forked from fmtlib/fmt

Commit

Permalink
Replace usage of C++17 library feature with C++11 (fmtlib#3638)
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko authored and ckerr committed Nov 7, 2023
1 parent ca41359 commit c43fbd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -2543,8 +2543,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> _;
Expand Down

0 comments on commit c43fbd4

Please sign in to comment.