-
Notifications
You must be signed in to change notification settings - Fork 785
Closed
Labels
cwgIssue must be reviewed by CWG.Issue must be reviewed by CWG.not-editorialIssue is not deemed editorial; the editorial issue is kept open for tracking.Issue is not deemed editorial; the editorial issue is kept open for tracking.
Description
A candidate function having more than m parameters is viable only if the (m+1)st parameter has a default argument ([dcl.fct.default]).124
and footnote 124 says:
According to [dcl.fct.default], parameters following the (m+1)st parameter must also have default arguments.
However, according to [dcl.fct.default], subsequent parameters do not need to have default arguments if they were expanded from a parameter pack.
template<class ... T> struct C {
void f(int n = 0, T...);
};
C<int> c; // OK, instantiates declaration void C::f(int n = 0, int)
Metadata
Metadata
Assignees
Labels
cwgIssue must be reviewed by CWG.Issue must be reviewed by CWG.not-editorialIssue is not deemed editorial; the editorial issue is kept open for tracking.Issue is not deemed editorial; the editorial issue is kept open for tracking.