Declaration of partial specialization of static data member template
13.7.6 [temp.spec.partial]
Richard Smith

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


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: 2022-11-20.07:54:16

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 (13.9.4 [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?

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