mirror of
https://github.com/fmtlib/fmt.git
synced 2025-02-24 21:39:49 +00:00
std.h c++23 build fix (#3856)
Add ::value to is_formattable<...> as per suggestion by @vitaut in https://github.com/fmtlib/fmt/issues/3854
This commit is contained in:
parent
8e42eef495
commit
0166f455f6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user