Skip to content

Commit 453a42b

Browse files
committed
[depr.ellipsis.comma] Non-comma-separated ellipsis parameters
1 parent fb5546f commit 453a42b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/future.tex

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,19 @@
115115
\end{codeblock}
116116
\end{example}
117117

118+
\rSec1[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.
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}
118131

119132
\rSec1[depr.array.comp]{Array comparisons}
120133

0 commit comments

Comments
 (0)