Fix tuple join

This commit is contained in:
Victor Zverovich 2021-12-29 14:46:45 -08:00
parent 4fac7daaef
commit bb69201578

View File

@ -710,8 +710,9 @@ struct formatter<tuple_join_view<Char, T...>, Char> {
FMT_CONSTEXPR auto do_parse(ParseContext& ctx, FMT_CONSTEXPR auto do_parse(ParseContext& ctx,
std::integral_constant<size_t, N>) std::integral_constant<size_t, N>)
-> decltype(ctx.begin()) { -> decltype(ctx.begin()) {
auto end = std::get<sizeof...(T) - N>(formatters_).parse(ctx); auto end = ctx.begin();
#if FMT_TUPLE_JOIN_SPECIFIERS #if FMT_TUPLE_JOIN_SPECIFIERS
end = std::get<sizeof...(T) - N>(formatters_).parse(ctx);
if (N > 1) { if (N > 1) {
auto end1 = do_parse(ctx, std::integral_constant<size_t, N - 1>()); auto end1 = do_parse(ctx, std::integral_constant<size_t, N - 1>());
if (end != end1) if (end != end1)