Skip to content
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
9 changes: 7 additions & 2 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4561,6 +4561,8 @@
int h(int a, int b = sizeof(a)); // OK, unevaluated operand\iref{term.unevaluated.operand}
\end{codeblock}
\end{example}

\pnum
A non-static member shall not be designated in a default argument unless
\begin{itemize}
\item
Expand Down Expand Up @@ -4598,8 +4600,9 @@
\tcode{X::b}.
Classes, objects, and members are described in \ref{class}.
\end{example}
A default argument is not part of the
type of a function.

\pnum
A default argument is not part of the type of a function.
\begin{example}
\begin{codeblock}
int f(int = 0);
Expand All @@ -4613,6 +4616,8 @@
int (*p2)() = &f; // error: type mismatch
\end{codeblock}
\end{example}

\pnum
\begin{note}
When an overload set contains a declaration of a function
whose host scope is $S$,
Expand Down
Loading