Skip to content

Commit

Permalink
Merge 2024-11 CWG Motion 8
Browse files Browse the repository at this point in the history
P3176R1 The Oxford variadic comma
  • Loading branch information
tkoeppe authored Dec 16, 2024
2 parents fe0a6f8 + cd6f411 commit 1358c8c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
14 changes: 10 additions & 4 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3623,8 +3623,10 @@
\indextext{declaration!function}%
\begin{bnf}
\nontermdef{parameter-declaration-clause}\br
\opt{parameter-declaration-list} \opt{\terminal{...}}\br
parameter-declaration-list \terminal{,} \terminal{...}
\terminal{...}\br
\opt{parameter-declaration-list}\br
parameter-declaration-list \terminal{,} \terminal{...}\br
parameter-declaration-list \terminal{...}
\end{bnf}

\begin{bnf}
Expand Down Expand Up @@ -3680,9 +3682,13 @@
argument and are not function parameter packs.
Where syntactically correct and where ``\tcode{...}'' is not
part of an \grammarterm{abstract-declarator},
``\tcode{, ...}''
``\tcode{...}''
is synonymous with
``\tcode{...}''.
``\tcode{, ...}''.
A \grammarterm{parameter-declaration-clause}
of the form
\grammarterm{parameter-declaration-list} \tcode{...}
is deprecated\iref{depr.ellipsis.comma}.
\begin{example}
The declaration
\begin{codeblock}
Expand Down
13 changes: 13 additions & 0 deletions source/future.tex
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,19 @@
\end{codeblock}
\end{example}

\rSec1[depr.ellipsis.comma]{Non-comma-separated ellipsis parameters}

A \grammarterm{parameter-declaration-clause}
of the form
\grammarterm{parameter-declaration-list} \tcode{...}
is deprecated\iref{dcl.fct}.
\begin{example}
\begin{codeblock}
void f(int...); // deprecated
void g(auto...); // OK, declares a function parameter pack
void h(auto......); // deprecated
\end{codeblock}
\end{example}

\rSec1[depr.impldec]{Implicit declaration of copy functions}

Expand Down

0 comments on commit 1358c8c

Please sign in to comment.