diff --git a/test/format-test.cc b/test/format-test.cc index 7144064a..274c3b9f 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -2481,7 +2481,12 @@ struct lazy_optional { }; FMT_BEGIN_NAMESPACE -template <> struct formatter : formatter { +template <> struct formatter { + template + auto parse(ParseContext& ctx) -> decltype(ctx.begin()) { + return ctx.begin(); + } + template auto format(const lazy_optional& opt, Context& ctx) { if (opt.engaged) {