Title
Deduction extending parameter pack
Status
nad
Section
13.10.2 [temp.arg.explicit]
Submitter
Filip Roséen

Created on 2014-08-09.00:00:00 last changed 121 months ago

Messages

Date: 2014-11-15.00:00:00

Rationale (November, 2014):

CWG was not convinced that such cases are sufficiently useful to warrant the additional complexity in the rules required to support them.

Date: 2022-11-20.07:54:16

According to 13.10.2 [temp.arg.explicit] paragraph 9,

Template argument deduction can extend the sequence of template arguments corresponding to a template parameter pack, even when the sequence contains explicitly specified template arguments.

However, it is not clear how to handle an example like:

  template<class...> struct Z {
    Z (int);
  };

  template<class... Ts> void f (Z<Ts...>);

  int main () {
    f<void, void> (0);
  }
History
Date User Action Args
2014-11-24 00:00:00adminsetmessages: + msg5294
2014-08-09 00:00:00admincreate