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:
prlw1 2024-02-19 18:19:39 +00:00 committed by GitHub
parent 8e42eef495
commit 0166f455f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();