- Title
- “Unused” ellipsis and default arguments in partial ordering
- Status
- c++11
- Section
- 13.7.7.3 [temp.func.order]
- Submitter
- James Widman
Created on 2011-01-18.00:00:00 last changed 152 months ago
Messages
Date: 2011-03-15.00:00:00
Proposed resolution (March, 2011): This issue is resolved by the resolution of
issue 692 in document N3281.
Date: 2011-01-18.00:00:00
The specification for how to handle default arguments and ellipsis
in partial ordering of function templates is confusing.
13.7.7.3 [temp.func.order] paragraph 5 currently reads, 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.
The presence of unused ellipsis and default arguments has no effect on
the partial ordering of function templates.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-03-03 00:00:00 | admin | set | status: fdis -> c++11 |
| 2011-04-10 00:00:00 | admin | set | messages: + msg3388 |
| 2011-04-10 00:00:00 | admin | set | status: open -> fdis |
| 2011-01-18 00:00:00 | admin | create | |