Skip to content

Commit 148fab5

Browse files
jensmaurertkoeppe
authored andcommitted
LWG3660 iterator_traits<common_iterator>::pointer should conform to [iterator.traits]
1 parent 351afbf commit 148fab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/iterators.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4872,9 +4872,9 @@
48724872
otherwise it denotes \tcode{input_iterator_tag}.
48734873

48744874
\item
4875+
Let \tcode{a} denote an lvalue of type \tcode{const common_iterator<I, S>}.
48754876
If the expression \tcode{a.operator->()} is well-formed,
4876-
where \tcode{a} is an lvalue of type \tcode{const common_iterator<I, S>},
4877-
then \tcode{pointer} denotes the type of that expression.
4877+
then \tcode{pointer} denotes \tcode{decltype(a.operator->())}.
48784878
Otherwise, \tcode{pointer} denotes \keyword{void}.
48794879
\end{itemize}
48804880

0 commit comments

Comments
 (0)