From bb692015780c75c8b84247593a4eda2ce1ac83e2 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 29 Dec 2021 14:46:45 -0800 Subject: [PATCH] Fix tuple join --- include/fmt/ranges.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)