Skip to content

Commit ada3369

Browse files
prlw1happymonkey1
authored andcommitted
std.h c++23 build fix (fmtlib#3856)
Add ::value to is_formattable<...> as per suggestion by @vitaut in fmtlib#3854
1 parent 60b0ba4 commit ada3369

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)