Skip to content

Commit 4d8e364

Browse files
jensmaurertkoeppe
authored andcommitted
[dcl.fct.default] Split overlong numbered paragraph
1 parent fc466c5 commit 4d8e364

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎source/declarations.tex‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4561,6 +4561,8 @@
45614561
int h(int a, int b = sizeof(a)); // OK, unevaluated operand\iref{term.unevaluated.operand}
45624562
\end{codeblock}
45634563
\end{example}
4564+
4565+
\pnum
45644566
A non-static member shall not be designated in a default argument unless
45654567
\begin{itemize}
45664568
\item
@@ -4598,8 +4600,9 @@
45984600
\tcode{X::b}.
45994601
Classes, objects, and members are described in \ref{class}.
46004602
\end{example}
4601-
A default argument is not part of the
4602-
type of a function.
4603+
4604+
\pnum
4605+
A default argument is not part of the type of a function.
46034606
\begin{example}
46044607
\begin{codeblock}
46054608
int f(int = 0);
@@ -4613,6 +4616,8 @@
46134616
int (*p2)() = &f; // error: type mismatch
46144617
\end{codeblock}
46154618
\end{example}
4619+
4620+
\pnum
46164621
\begin{note}
46174622
When an overload set contains a declaration of a function
46184623
whose host scope is $S$,

0 commit comments

Comments
 (0)