Skip to content

Commit abe6947

Browse files
burblebeetkoeppe
authored andcommitted
LWG3766 view_interface::cbegin is underconstrained
1 parent 863a4c2 commit abe6947

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/ranges.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,16 +1696,16 @@
16961696
return ranges::begin(@\exposid{derived}@()) == ranges::end(@\exposid{derived}@());
16971697
}
16981698

1699-
constexpr auto cbegin() {
1699+
constexpr auto cbegin() requires @\libconcept{input_range}@<D> {
17001700
return ranges::cbegin(@\exposid{derived}@());
17011701
}
1702-
constexpr auto cbegin() const requires @\libconcept{range}@<const D> {
1702+
constexpr auto cbegin() const requires @\libconcept{input_range}@<const D> {
17031703
return ranges::cbegin(@\exposid{derived}@());
17041704
}
1705-
constexpr auto cend() {
1705+
constexpr auto cend() requires @\libconcept{input_range}@<D> {
17061706
return ranges::cend(@\exposid{derived}@());
17071707
}
1708-
constexpr auto cend() const requires @\libconcept{range}@<const D> {
1708+
constexpr auto cend() const requires @\libconcept{input_range}@<const D> {
17091709
return ranges::cend(@\exposid{derived}@());
17101710
}
17111711

0 commit comments

Comments
 (0)