This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 114a. See for the official list.


1235. “Unused” ellipsis and default arguments in partial ordering

Section:  [temp.func.order]     Status: C++11     Submitter: James Widman     Date: 2011-01-18

The specification for how to handle default arguments and ellipsis in partial ordering of function templates is confusing. [temp.func.order] paragraph 5 currently reads,

The presence of unused ellipsis and default arguments has no effect on the partial ordering of function templates.

It is not clear what “unused” means in this context. According to the original issue resolution that resulted in this wording (N1053, item 6.55), the intent was that “When partial ordering of function templates containing a different number of parameters is done, only the common parameters are considered.” Presumably this would include parameters with default arguments if each function had such parameters in corresponding positions.

The wording needs to be revised to make this intent clear.

Proposed resolution (March, 2011):

This issue is resolved by the resolution of issue 692 in document N3281.