Skip to content

Commit 8c1918f

Browse files
jensmaurertkoeppe
authored andcommitted
[range.elements.iterator] Add missing 'friend' for operator-. (#4158)
1 parent 1c40f7d commit 8c1918f

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
@@ -6678,7 +6678,7 @@
66786678

66796679
\indexlibrarymember{operator-}{elements_view::iterator}%
66806680
\begin{itemdecl}
6681-
constexpr @\exposid{iterator}@ operator-(const @\exposid{iterator}@& x, difference_type y)
6681+
friend constexpr @\exposid{iterator}@ operator-(const @\exposid{iterator}@& x, difference_type y)
66826682
requires @\libconcept{random_access_range}@<@\exposid{Base}@>;
66836683
\end{itemdecl}
66846684

@@ -6690,7 +6690,7 @@
66906690

66916691
\indexlibrarymember{operator-}{elements_view::iterator}%
66926692
\begin{itemdecl}
6693-
constexpr difference_type operator-(const @\exposid{iterator}@& x, const @\exposid{iterator}@& y)
6693+
friend constexpr difference_type operator-(const @\exposid{iterator}@& x, const @\exposid{iterator}@& y)
66946694
requires @\libconcept{random_access_range}@<@\exposid{Base}@>;
66956695
\end{itemdecl}
66966696

0 commit comments

Comments
 (0)