Skip to content

Commit cf33a4d

Browse files
burblebeetkoeppe
authored andcommitted
LWG3801 cartesian_product_view::iterator::distance-from ignores the size of last underlying range
1 parent 709bfef commit cf33a4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/ranges.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -14622,7 +14622,7 @@
1462214622
$\exposid{scaled-size}(N)$ be the product of
1462314623
\tcode{static_cast<difference_type>(ranges::size(std::get<\brk{}$N$>(\exposid{parent_}->\exposid{bases_})))} and
1462414624
$\exposid{scaled-size}(N+1)$
14625-
if $N < \tcode{sizeof...(Vs)}$, otherwise \tcode{static_cast<difference_type>(1)};
14625+
if $N \le \tcode{sizeof...(Vs)}$, otherwise \tcode{static_cast<difference_type>(1)};
1462614626
\item
1462714627
$\exposid{scaled-distance}(N)$ be the product of
1462814628
\tcode{static_cast<difference_type>(std::get<$N$>(\exposid{cur\-rent_}) - std::get<$N$>(t))} and $\exposid{scaled-size}(N+1)$; and

0 commit comments

Comments
 (0)