Skip to content

Commit 518ac8a

Browse files
burblebeetkoeppe
authored andcommitted
LWG3482 drop_view's const begin should additionally require sized_range
1 parent 245c910 commit 518ac8a

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
@@ -4743,9 +4743,10 @@
47434743
constexpr V base() && { return std::move(@\exposid{base_}@); }
47444744

47454745
constexpr auto begin()
4746-
requires (!(@\exposconcept{simple-view}@<V> && @\libconcept{random_access_range}@<V>));
4746+
requires (!(@\exposconcept{simple-view}@<V> &&
4747+
@\libconcept{random_access_range}@<const V> && @\libconcept{sized_range}@<const V>));
47474748
constexpr auto begin() const
4748-
requires @\libconcept{random_access_range}@<const V>;
4749+
requires @\libconcept{random_access_range}@<const V> && @\libconcept{sized_range}@<const V>;
47494750

47504751
constexpr auto end()
47514752
requires (!@\exposconcept{simple-view}@<V>)
@@ -4799,9 +4800,10 @@
47994800
\indexlibrarymember{begin}{drop_view}%
48004801
\begin{itemdecl}
48014802
constexpr auto begin()
4802-
requires (!(@\exposconcept{simple-view}@<V> && @\libconcept{random_access_range}@<V>));
4803+
requires (!(@\exposconcept{simple-view}@<V> &&
4804+
@\libconcept{random_access_range}@<const V> && @\libconcept{sized_range}@<const V>));
48034805
constexpr auto begin() const
4804-
requires random_access_range<const V>;
4806+
requires random_access_range<const V> && @\libconcept{sized_range}@<const V>;
48054807
\end{itemdecl}
48064808

48074809
\begin{itemdescr}

0 commit comments

Comments
 (0)