Skip to content

Commit 676bce0

Browse files
burblebeetkoeppe
authored andcommitted
LWG4098 views::adjacent<0> should reject non-forward ranges
1 parent 02ebb01 commit 676bce0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/ranges.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12241,7 +12241,8 @@
1224112241
\begin{itemize}
1224212242
\item
1224312243
\tcode{((void)E, auto(views::empty<tuple<>>))}
12244-
if \tcode{N} is equal to \tcode{0},
12244+
if \tcode{N} is equal to \tcode{0} and
12245+
\tcode{decltype((E))} models \libconcept{forward_range},
1224512246
\item
1224612247
otherwise, \tcode{adjacent_view<views::all_t<decltype((E))>, N>(E)}.
1224712248
\end{itemize}
@@ -12874,7 +12875,8 @@
1287412875
a constant expression \tcode{N}:
1287512876
\begin{itemize}
1287612877
\item
12877-
If \tcode{N} is equal to \tcode{0},
12878+
If \tcode{N} is equal to \tcode{0} and
12879+
\tcode{decltype((E))} models \libconcept{forward_range},
1287812880
\tcode{views::adjacent_transform<N>(E, F)} is expression-equivalent to
1287912881
\tcode{((void)E, views::zip_transform(F))},
1288012882
except that the evaluations of \tcode{E} and \tcode{F} are

0 commit comments

Comments
 (0)