Skip to content

Commit 796bbfc

Browse files
burblebeetkoeppe
authored andcommitted
LWG3820 cartesian_product_view::iterator::prev is not quite right
1 parent 6cbbb98 commit 796bbfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/ranges.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14602,9 +14602,9 @@
1460214602
Equivalent to:
1460314603
\begin{codeblock}
1460414604
auto& it = std::get<N>(@\exposid{current_}@);
14605-
if (it == ranges::begin(std::get<N>(@\exposid{parent_}@->@\exposid{bases_}@))) {
14606-
it = @\exposid{cartesian-common-arg-end}@(std::get<N>(@\exposid{parent_}@->@\exposid{bases_}@));
14607-
if constexpr (N > 0) {
14605+
if constexpr (N > 0) {
14606+
if (it == ranges::begin(std::get<N>(@\exposid{parent_}@->@\exposid{bases_}@))) {
14607+
it = @\exposid{cartesian-common-arg-end}@(std::get<N>(@\exposid{parent_}@->@\exposid{bases_}@));
1460814608
@\exposid{prev}@<N - 1>();
1460914609
}
1461014610
}

0 commit comments

Comments
 (0)