Skip to content

[range.join.with.iterator] Add missing 'template' keyword prior to dependent template name 'emplace' #5455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7349,16 +7349,16 @@
if (@\exposid{inner_it_}@.index() == 0) {
if (std::get<0>(@\exposid{inner_it_}@) != ranges::end(@\exposid{parent_}@->@\exposid{pattern_}@))
break;
@\exposid{inner_it_}@.emplace<1>(ranges::begin(@\exposid{update-inner}@()));
@\exposid{inner_it_}@.template emplace<1>(ranges::begin(@\exposid{update-inner}@()));
} else {
if (std::get<1>(@\exposid{inner_it_}@) != ranges::end(@\exposid{get-inner}@()))
break;
if (++@\exposid{outer}@() == ranges::end(@\exposid{parent_}@->@\exposid{base_}@)) {
if constexpr (@\exposid{ref-is-glvalue}@)
@\exposid{inner_it_}@.emplace<0>();
@\exposid{inner_it_}@.template emplace<0>();
break;
}
@\exposid{inner_it_}@.emplace<0>(ranges::begin(@\exposid{parent_}@->@\exposid{pattern_}@));
@\exposid{inner_it_}@.template emplace<0>(ranges::begin(@\exposid{parent_}@->@\exposid{pattern_}@));
}
}
\end{codeblock}
Expand All @@ -7385,7 +7385,7 @@
Then, equivalent to:
\begin{codeblock}
if (@\exposid{outer}@() != ranges::end(@\exposid{parent_}@->@\exposid{base_}@)) {
@\exposid{inner_it_}@.emplace<1>(ranges::begin(@\exposid{update-inner}@()));
@\exposid{inner_it_}@.template emplace<1>(ranges::begin(@\exposid{update-inner}@()));
@\exposidnc{satisfy}@();
}
\end{codeblock}
Expand All @@ -7407,9 +7407,9 @@
Then, equivalent to:
\begin{codeblock}
if (i.@\exposid{inner_it_}@.index() == 0)
@\exposid{inner_it_}@.emplace<0>(std::get<0>(std::move(i.@\exposid{inner_it_}@)));
@\exposid{inner_it_}@.template emplace<0>(std::get<0>(std::move(i.@\exposid{inner_it_}@)));
else
@\exposid{inner_it_}@.emplace<1>(std::get<1>(std::move(i.@\exposid{inner_it_}@)));
@\exposid{inner_it_}@.template emplace<1>(std::get<1>(std::move(i.@\exposid{inner_it_}@)));
\end{codeblock}

\pnum
Expand Down Expand Up @@ -7488,23 +7488,23 @@
\begin{codeblock}
if (@\exposid{outer_it_}@ == ranges::end(@\exposid{parent_}@->@\exposid{base_}@)) {
auto&& inner = *--@\exposid{outer_it_}@;
@\exposid{inner_it_}@.emplace<1>(ranges::end(inner));
@\exposid{inner_it_}@.template emplace<1>(ranges::end(inner));
}

while (true) {
if (@\exposid{inner_it_}@.index() == 0) {
auto& it = std::get<0>(@\exposid{inner_it_}@);
if (it == ranges::begin(@\exposid{parent_}@->@\exposid{pattern_}@)) {
auto&& inner = *--@\exposid{outer_it_}@;
@\exposid{inner_it_}@.emplace<1>(ranges::end(inner));
@\exposid{inner_it_}@.template emplace<1>(ranges::end(inner));
} else {
break;
}
} else {
auto& it = std::get<1>(@\exposid{inner_it_}@);
auto&& inner = *@\exposid{outer_it_}@;
if (it == ranges::begin(inner)) {
@\exposid{inner_it_}@.emplace<0>(ranges::end(@\exposid{parent_}@->@\exposid{pattern_}@));
@\exposid{inner_it_}@.template emplace<0>(ranges::end(@\exposid{parent_}@->@\exposid{pattern_}@));
} else {
break;
}
Expand Down