Title
Default arguments in explicit instantiations
Status
drafting
Section
9.3.4.7 [dcl.fct.default]
Submitter
Daveed Vandevoorde

Created on 2012-10-29.00:00:00 last changed 133 months ago

Messages

Date: 2013-04-15.00:00:00

Notes from the April, 2013 meeting:

The intent is to prohibit default arguments in explicit instantiations.

Date: 2012-10-29.00:00:00

It is not clear, either from 9.3.4.7 [dcl.fct.default] or 13.9.3 [temp.explicit], whether it is permitted to add a default argument in an explicit instantiation of a function template:

  template<typename T> void f(T, int) { }
  template void f<int>(int, int=0);  // Permitted?
History
Date User Action Args
2013-05-03 00:00:00adminsetmessages: + msg4334
2013-05-03 00:00:00adminsetstatus: open -> drafting
2012-10-29 00:00:00admincreate