Skip to content

Commit f630484

Browse files
burblebeetkoeppe
authored andcommitted
LWG4112 has-arrow should required operator->() to be const-qualified
1 parent 141cb50 commit f630484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/ranges.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@
16341634

16351635
template<class I>
16361636
concept @\defexposconceptnc{has-arrow}@ = // \expos
1637-
@\libconcept{input_iterator}@<I> && (is_pointer_v<I> || requires(I i) { i.operator->(); });
1637+
@\libconcept{input_iterator}@<I> && (is_pointer_v<I> || requires(const I i) { i.operator->(); });
16381638

16391639
template<class T, class U>
16401640
concept @\defexposconceptnc{different-from}@ = // \expos

0 commit comments

Comments
 (0)