Skip to content

Commit

Permalink
std.h c++23 build fix (#3856)
Browse files Browse the repository at this point in the history
Add ::value to is_formattable<...> as per suggestion by @vitaut in
#3854
  • Loading branch information
prlw1 authored Feb 19, 2024
1 parent 8e42eef commit 0166f45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/fmt/std.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ FMT_BEGIN_NAMESPACE

FMT_EXPORT
template <typename T, typename E, typename Char>
struct formatter<
std::expected<T, E>, Char,
std::enable_if_t<is_formattable<T, Char> && is_formattable<E, Char>>> {
struct formatter<std::expected<T, E>, Char,
std::enable_if_t<is_formattable<T, Char>::value &&
is_formattable<E, Char>::value>> {
template <typename ParseContext>
FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
return ctx.begin();
Expand Down

0 comments on commit 0166f45

Please sign in to comment.