Skip to content

Commit

Permalink
std.h c++23 build fix (fmtlib#3856)
Browse files Browse the repository at this point in the history
Add ::value to is_formattable<...> as per suggestion by @vitaut in
fmtlib#3854
  • Loading branch information
prlw1 authored and happymonkey1 committed Apr 6, 2024
1 parent 60b0ba4 commit ada3369
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 ada3369

Please sign in to comment.