Title
Additional template parameters following pack expansion
Status
dup
Section
13.7.4 [temp.variadic]
Submitter
Richard Smith

Created on 2018-12-03.00:00:00 last changed 46 months ago

Messages

Date: 2019-02-15.00:00:00

Rationale (February, 2019):

This issue is covered in more detail in issue 2395.

Date: 2022-11-20.07:54:16

The Standard is not clear on the treatment of an example like the following, and there is implementation variance:

  template<class ...Types> struct Tuple_ { // _VARIADIC_TEMPLATE
    template<Types ...T, int> int f() {
      return sizeof...(Types);
    }
  };

  int main() {
    Tuple_<char,int> a;
    int b = a.f<1, 2, 3>();
  }
History
Date User Action Args
2021-02-24 00:00:00adminsetmessages: + msg6523
2018-12-03 00:00:00admincreate