Skip to content

Commit 16c66ad

Browse files
burblebeetkoeppe
authored andcommitted
LWG3946 The definition of const_iterator_t should be reworked
1 parent 765a692 commit 16c66ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/ranges.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
6565
template<@\libconcept{range}@ R>
6666
using sentinel_t = decltype(ranges::end(declval<R&>())); // freestanding
6767
template<@\libconcept{range}@ R>
68-
using const_iterator_t = const_iterator<iterator_t<R>>; // freestanding
68+
using const_iterator_t = decltype(ranges::cbegin(declval<R&>())); // freestanding
6969
template<@\libconcept{range}@ R>
70-
using const_sentinel_t = const_sentinel<sentinel_t<R>>; // freestanding
70+
using const_sentinel_t = decltype(ranges::cend(declval<R&>())); // freestanding
7171
template<@\libconcept{range}@ R>
7272
using range_difference_t = iter_difference_t<iterator_t<R>>; // freestanding
7373
template<@\libconcept{sized_range}@ R>

0 commit comments

Comments
 (0)