From b40d393e114e408a8de7f24bf81ddb43153e69cf Mon Sep 17 00:00:00 2001 From: Ivan Lazaric Date: Sun, 27 Sep 2026 14:23:53 +0200 Subject: [PATCH] Fix clang 11 build. --- test/compile-test.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/compile-test.cc b/test/compile-test.cc index bb59459a..c93d898d 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -499,14 +499,16 @@ struct constexpr_enabled {}; template <> struct fmt::formatter { bool debug = false; - FMT_CONSTEXPR auto parse(auto& ctx) { + FMT_CONSTEXPR auto parse(format_parse_context& ctx) -> decltype(ctx.begin()) { if (ctx.begin() != ctx.end() && *ctx.begin() == '?') { debug = true; ctx.advance_to(ctx.begin() + 1); } return ctx.begin(); } - FMT_CONSTEXPR auto format(constexpr_enabled, auto& ctx) const { + template + FMT_CONSTEXPR auto format(constexpr_enabled, FormatContext& ctx) const + -> decltype(ctx.out()) { return fmt::formatter{}.format( debug ? "debug" : "regular", ctx); }