File tree 2 files changed +23
-4
lines changed
2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 3623
3623
\indextext {declaration!function}%
3624
3624
\begin {bnf }
3625
3625
\nontermdef {parameter-declaration-clause}\br
3626
- \opt {parameter-declaration-list} \opt {\terminal {...}}\br
3627
- parameter-declaration-list \terminal {,} \terminal {...}
3626
+ \terminal {...}\br
3627
+ \opt {parameter-declaration-list}\br
3628
+ parameter-declaration-list \terminal {,} \terminal {...}\br
3629
+ parameter-declaration-list \terminal {...}
3628
3630
\end {bnf }
3629
3631
3630
3632
\begin {bnf }
3680
3682
argument and are not function parameter packs.
3681
3683
Where syntactically correct and where `` \tcode {...}'' is not
3682
3684
part of an \grammarterm {abstract-declarator},
3683
- `` \tcode {, ...}''
3685
+ `` \tcode {...}''
3684
3686
is synonymous with
3685
- `` \tcode {...}'' .
3687
+ `` \tcode {, ...}'' .
3688
+ A \grammarterm {parameter-declaration-clause}
3689
+ of the form
3690
+ \grammarterm {parameter-declaration-list} \tcode {...}
3691
+ is deprecated\iref {depr.ellipsis.comma }.
3686
3692
\begin {example }
3687
3693
The declaration
3688
3694
\begin {codeblock }
Original file line number Diff line number Diff line change 115
115
\end {codeblock }
116
116
\end {example }
117
117
118
+ \rSec 1[depr.ellipsis.comma]{Non-comma-separated ellipsis parameters}
119
+
120
+ A \grammarterm {parameter-declaration-clause}
121
+ of the form
122
+ \grammarterm {parameter-declaration-list} \tcode {...}
123
+ is deprecated\iref {dcl.fct }.
124
+ \begin {example }
125
+ \begin {codeblock }
126
+ void f(int...); // deprecated
127
+ void g(auto...); // OK, declares a function parameter pack
128
+ void h(auto......); // deprecated
129
+ \end {codeblock }
130
+ \end {example }
118
131
119
132
\rSec 1[depr.impldec]{Implicit declaration of copy functions}
120
133
You can’t perform that action at this time.
0 commit comments