From b118fa2dbe1205c9312f24920b19cf138f68200e Mon Sep 17 00:00:00 2001 From: Ivan Lazaric Date: Sun, 27 Sep 2026 14:35:20 +0200 Subject: [PATCH] Fix gcc 11 build. --- test/compile-test.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/compile-test.cc b/test/compile-test.cc index c93d898d..ead5c9ec 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -497,7 +497,7 @@ TEST(compile_test, format_as) { struct constexpr_enabled {}; -template <> struct fmt::formatter { +template <> struct fmt::formatter : formatter { bool debug = false; FMT_CONSTEXPR auto parse(format_parse_context& ctx) -> decltype(ctx.begin()) { if (ctx.begin() != ctx.end() && *ctx.begin() == '?') { @@ -509,8 +509,7 @@ template <> struct fmt::formatter { template FMT_CONSTEXPR auto format(constexpr_enabled, FormatContext& ctx) const -> decltype(ctx.out()) { - return fmt::formatter{}.format( - debug ? "debug" : "regular", ctx); + return formatter::format(debug ? "debug" : "regular", ctx); } };