Title
Linkage of specialization vs linkage of template arguments
Status
review
Section
13.9.2 [temp.inst]
Submitter
Richard Smith

Created on 2013-01-09.00:00:00 last changed 14 months ago

Messages

Date: 2023-02-15.00:00:00

Additional notes (February, 2023)

Template specializations do not have linkage.

Date: 2013-01-09.00:00:00

The Standard does not appear to specify the linkage of a template specialization. 13.9.2 [temp.inst] paragraph 11 does say,

Implicitly instantiated class and function template specializations are placed in the namespace where the template is defined.

which could be read as implying that the specialization has the same linkage as the template itself. Implementation practice seems to be that the weakst linkage of the template and the arguments is used for the specialization.

History
Date User Action Args
2023-02-12 18:18:03adminsetmessages: + msg7201
2023-02-12 18:18:03adminsetstatus: open -> review
2013-01-09 00:00:00admincreate