From 44190fc35183363d422ae524ed56ea06d730578d Mon Sep 17 00:00:00 2001 From: Patrick Welche Date: Mon, 19 Feb 2024 17:45:55 +0000 Subject: [PATCH] std.h c++23 build fix Add ::value to is_formattable<...> as per suggestion by @vitaut in https://github.com/fmtlib/fmt/issues/3854 --- include/fmt/std.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/std.h b/include/fmt/std.h index ff96a952..12e15d3e 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -269,9 +269,9 @@ FMT_BEGIN_NAMESPACE FMT_EXPORT template -struct formatter< - std::expected, Char, - std::enable_if_t && is_formattable>> { +struct formatter, Char, + std::enable_if_t::value && + is_formattable::value>> { template FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) { return ctx.begin();