Skip to content

Commit

Permalink
std.h c++23 build fix
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 17, 2024
1 parent 8e42eef commit 30673ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/std.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ 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>>> {
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 30673ca

Please sign in to comment.