Created on 2011-01-18.00:00:00 last changed 131 months ago
[Voted into the WP at the March, 2011 meeting as part of paper N3262.]
The ellipsis for a parameter pack enters the normal declarator grammar as part of the declarator-id nonterminal. In contrast, however, the abstract-declarator grammar has no counterpart to declarator-id; instead, the ellipsis is one of the productions for the abstract-declarator nonterminal itself. It is thus impossible to declare a parameter pack for a pointer or reference using an abstract declarator, e.g.,
template<typename... T> void f(T& ...t); // t is a parameter pack template<typename... T> void f(T& ...); // equivalent to void f(T&, ...)
History | |||
---|---|---|---|
Date | User | Action | Args |
2014-03-03 00:00:00 | admin | set | status: fdis -> c++11 |
2011-04-10 00:00:00 | admin | set | messages: + msg3339 |
2011-04-10 00:00:00 | admin | set | status: open -> fdis |
2011-01-18 00:00:00 | admin | create |