Skip to content

P1965R0 Blanket Wording for Specifying "Hidden Friends" #3447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions source/lib-intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3122,6 +3122,29 @@
or add additional signatures for a member function name.
\end{note}

\rSec3[hidden.friends]{Friend functions}

\pnum
Whenever this document specifies
a friend declaration of a function or function template
within a class or class template definition,
that declaration shall be
the only declaration of that function or function template
provided by an implementation.
\begin{note}
In particular,
an implementation is not allowed to provide
an additional declaration of that function or function template
at namespace scope.
\end{note}
\begin{note}
Such a friend function or function template declaration
is known as a hidden friend,
as it is visible neither
to ordinary unqualified lookup\iref{basic.lookup.unqual} nor
to qualified lookup\iref{basic.lookup.qual}.
\end{note}

\rSec3[constexpr.functions]{Constexpr functions and constructors}

\pnum
Expand Down