Skip to content

Commit caa5c8a

Browse files
jensmaurerzygoloid
authored andcommitted
[class.compare.default] Add a note that friends are found by ADL only.
1 parent 925daa0 commit caa5c8a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/classes.tex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6664,6 +6664,11 @@
66646664
\begin{codeblock}
66656665
friend bool operator==(const X&, const X&);
66666666
\end{codeblock}
6667+
\begin{note}
6668+
Such a friend function is visible
6669+
to argument-dependent lookup\iref{basic.lookup.argdep}
6670+
only\iref{namespace.memdef}.
6671+
\end{note}
66676672
The operator is a \tcode{constexpr} function if its definition
66686673
would satisfy the requirements for a \tcode{constexpr} function.
66696674
\begin{note}

0 commit comments

Comments
 (0)