Skip to content

Commit c4a604f

Browse files
committed
LWG3482 drop_view's const begin should additionally require sized_range
1 parent 963bd24 commit c4a604f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/ranges.tex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4742,9 +4742,10 @@
47424742
constexpr V base() && { return std::move(@\exposid{base_}@); }
47434743

47444744
constexpr auto begin()
4745-
requires (!(@\exposconcept{simple-view}@<V> && @\libconcept{random_access_range}@<V>));
4745+
requires (!(@\exposconcept{simple-view}@<V> &&
4746+
@\libconcept{random_access_range}@<connst V> && @\libconcept{sized_range}@<const V>));
47464747
constexpr auto begin() const
4747-
requires @\libconcept{random_access_range}@<const V>;
4748+
requires @\libconcept{random_access_range}@<const V> && @\libconcept{sized_range}@<const V>;
47484749

47494750
constexpr auto end()
47504751
requires (!@\exposconcept{simple-view}@<V>)
@@ -4798,9 +4799,10 @@
47984799
\indexlibrarymember{begin}{drop_view}%
47994800
\begin{itemdecl}
48004801
constexpr auto begin()
4801-
requires (!(@\exposconcept{simple-view}@<V> && @\libconcept{random_access_range}@<V>));
4802+
requires (!(@\exposconcept{simple-view}@<V> &&
4803+
@\libconcept{random_access_range}@<const V> && @\libconcept{sized_range}@<const V>));
48024804
constexpr auto begin() const
4803-
requires random_access_range<const V>;
4805+
requires random_access_range<const V> && @\libconcept{sized_range}@<const V>;
48044806
\end{itemdecl}
48054807

48064808
\begin{itemdescr}

0 commit comments

Comments
 (0)