Skip to content

Commit 875133f

Browse files
committed
Add a note that friends are not found by unqualified lookup.
1 parent 97f03e1 commit 875133f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/classes.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6664,6 +6664,9 @@
66646664
\begin{codeblock}
66656665
friend bool operator==(const X&, const X&);
66666666
\end{codeblock}
6667+
\begin{note}
6668+
Such a friend function is not visible to unqualified lookup\iref{namespace.memdef}.
6669+
\end{note}
66676670
The operator is a \tcode{constexpr} function if its definition
66686671
would satisfy the requirements for a \tcode{constexpr} function.
66696672
\begin{note}

0 commit comments

Comments
 (0)