Title
Default template arguments for members of class templates
Status
nad
Section
13.2 [temp.param]
Submitter
John Spicer

Created on 2014-03-27.00:00:00 last changed 127 months ago

Messages

Date: 2014-06-15.00:00:00

Rationale (June, 2014):

CWG felt that the existing wording os clear enough.

Date: 2022-11-20.07:54:16

According to 13.2 [temp.param] paragraph 9,

A default template-argument shall not be specified in the template-parameter-lists of the definition of a member of a class template that appears outside of the member's class.

This presumably is intended to apply to the parameters of the containing class template, not to the parameters of a member template, but the wording should be clarified. (Default arguments are permitted for a template member of a non-template class, and there does not appear to be a good rationale for treating members of a class template differently in this regard.)

History
Date User Action Args
2014-07-07 00:00:00adminsetmessages: + msg5116
2014-07-07 00:00:00adminsetstatus: open -> nad
2014-03-27 00:00:00admincreate