Skip to content

Commit d7ed9ee

Browse files
burblebeetkoeppe
authored andcommitted
LWG3765 const_sentinel should be constrained
1 parent f70fe44 commit d7ed9ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/iterators.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@
342342
concept @\exposconcept{constant-iterator}@ = @\seebelow@; // \expos
343343
template<@\libconcept{input_iterator}@ I>
344344
using const_iterator = @\seebelow@; // freestanding
345-
template<class S>
345+
template<@\libconcept{semiregular}@ S>
346346
using const_sentinel = @\seebelow@; // freestanding
347347

348348
// \ref{const.iterators.iterator}, class template \tcode{basic_const_iterator}
@@ -365,7 +365,7 @@
365365
template<@\libconcept{input_iterator}@ I>
366366
constexpr const_iterator<I> make_const_iterator(I it) { return it; } // freestanding
367367

368-
template<class S>
368+
template<@\libconcept{semiregular}@ S>
369369
constexpr const_sentinel<S> make_const_sentinel(S s) { return s; } // freestanding
370370

371371
// \ref{move.iterators}, move iterators and sentinels
@@ -4199,7 +4199,7 @@
41994199
\end{itemdescr}
42004200

42014201
\begin{itemdecl}
4202-
template<class S>
4202+
template<@\libconcept{semiregular}@ S>
42034203
using @\libglobal{const_sentinel}@ = @\seebelow@;
42044204
\end{itemdecl}
42054205

0 commit comments

Comments
 (0)