Skip to content

Commit 0166f45

Browse files
authored
std.h c++23 build fix (#3856)
Add ::value to is_formattable<...> as per suggestion by @vitaut in #3854
1 parent 8e42eef commit 0166f45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: include/fmt/std.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ FMT_BEGIN_NAMESPACE
269269

270270
FMT_EXPORT
271271
template <typename T, typename E, typename Char>
272-
struct formatter<
273-
std::expected<T, E>, Char,
274-
std::enable_if_t<is_formattable<T, Char> && is_formattable<E, Char>>> {
272+
struct formatter<std::expected<T, E>, Char,
273+
std::enable_if_t<is_formattable<T, Char>::value &&
274+
is_formattable<E, Char>::value>> {
275275
template <typename ParseContext>
276276
FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
277277
return ctx.begin();

0 commit comments

Comments
 (0)