Title
abstract-declarator does not permit ... after ptr-operator
Status
c++11
Section
9.3.2 [dcl.name]
Submitter
Johannes Schaub

Created on 2011-01-18.00:00:00 last changed 131 months ago

Messages

Date: 2011-03-15.00:00:00

[Voted into the WP at the March, 2011 meeting as part of paper N3262.]

Date: 2011-01-18.00:00:00

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:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetmessages: + msg3339
2011-04-10 00:00:00adminsetstatus: open -> fdis
2011-01-18 00:00:00admincreate