diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index 57847bfc..eb9fb8a9 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -710,8 +710,9 @@ struct formatter, Char> { FMT_CONSTEXPR auto do_parse(ParseContext& ctx, std::integral_constant) -> decltype(ctx.begin()) { - auto end = std::get(formatters_).parse(ctx); + auto end = ctx.begin(); #if FMT_TUPLE_JOIN_SPECIFIERS + end = std::get(formatters_).parse(ctx); if (N > 1) { auto end1 = do_parse(ctx, std::integral_constant()); if (end != end1)