This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 116a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2024-12-19
(From submission #632.)
The partial ordering rules in 13.7.7.3 [temp.func.order] paragraph 6 do not consider the possible presence of an ellipsis in the function parameter list:
Suggested resolution:
Change in 13.7.7.3 [temp.func.order] paragraph 6 and add bullets as follows:
If deduction against the other template succeeds for both transformed templates, constraints can be considered as follows:
- If
neither template is more specialized than the other.
- their template-parameter-lists (possibly including template-parameters invented for an abbreviated function template (9.3.4.6 [dcl.fct])) have different numbers of template-parameters or
- function parameter lists differ in length
- their parameter-type-lists have different numbers of parameters or
- either, but not both, of their parameter-type-lists has an ellipsis,
- Otherwise: ...