Title
Declaration of partial specialization of static data member template
Status
nad
Section
17.6.5 [temp.class.spec]
Submitter
Richard Smith

Created on 2013-09-19.00:00:00 last changed 63 months ago

Messages

Date: 2015-04-13.00:00:00

Additional note, April, 2015:

EWG has decided not to make a change in this area. See EWG issue 132.

Date: 2014-02-15.00:00:00

Rationale (February, 2014):

CWG felt that this issue is more appropriately considered by EWG.

Date: 2014-03-03.00:00:00

There does not appear to be a way to declare (not define) a partial specialization of a static data member template outside its class. The rule for explicit specializations (17.8.3 [temp.expl.spec] paragraph 13) is that the presence or absence of an initializer determines whether the explicit specialization is a definition or not. Applying this rule to the partial specialization case, however, would conflict with being able to provide an initializer on the declaration within the class.

Do we need to support declaring partial specializations of static data member templates outside their class?

History
Date User Action Args
2015-04-13 00:00:00adminsetmessages: + msg5437
2015-04-13 00:00:00adminsetstatus: extension -> nad
2014-03-03 00:00:00adminsetmessages: + msg4989
2014-03-03 00:00:00adminsetstatus: open -> extension
2013-09-19 00:00:00admincreate