Skip to content

Commit 0a8dc25

Browse files
jensmaurertkoeppe
authored andcommitted
[range.elements.iterator] Add missing 'friend' for operator-. (#4158)
1 parent 3511d82 commit 0a8dc25

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
@@ -6641,7 +6641,7 @@
66416641

66426642
\indexlibrarymember{operator-}{elements_view::iterator}%
66436643
\begin{itemdecl}
6644-
constexpr @\exposid{iterator}@ operator-(const @\exposid{iterator}@& x, difference_type y)
6644+
friend constexpr @\exposid{iterator}@ operator-(const @\exposid{iterator}@& x, difference_type y)
66456645
requires @\libconcept{random_access_range}@<@\exposid{Base}@>;
66466646
\end{itemdecl}
66476647

@@ -6653,7 +6653,7 @@
66536653

66546654
\indexlibrarymember{operator-}{elements_view::iterator}%
66556655
\begin{itemdecl}
6656-
constexpr difference_type operator-(const @\exposid{iterator}@& x, const @\exposid{iterator}@& y)
6656+
friend constexpr difference_type operator-(const @\exposid{iterator}@& x, const @\exposid{iterator}@& y)
66576657
requires @\libconcept{random_access_range}@<@\exposid{Base}@>;
66586658
\end{itemdecl}
66596659

0 commit comments

Comments
 (0)