Title
extern "C" alias templates
Status
drafting
Section
13.1 [temp.pre]
Submitter
Daveed Vandevoorde

Created on 2011-08-19.00:00:00 last changed 17 months ago

Messages

Date: 2013-04-15.00:00:00

Rationale (April, 2013):

CWG felt that this suggested use of alias templates should be considered in a broader context and thus was more appropriate for EWG.

EWG 2022-11-11

extern "C" on a template should be allowed, and should affect only calling convention, but not mangling. This is tracked in github issue cplusplus/papers#1373.

Date: 2022-11-20.07:54:16

Additional note, April, 2013:

It was suggested that relaxing this restriction for alias templates could provide a way of addressing the long-standing lack of a way of specifying a language linkage for a dependent function type (see issue 13).

Date: 2022-11-25.06:28:09

Currently 13.1 [temp.pre] paragraph 6 forbids any template from having C linkage. Should alias templates be exempt from this prohibition, since they do not have any linkage?

History
Date User Action Args
2022-11-25 06:28:09adminsetstatus: extension -> drafting
2013-05-03 00:00:00adminsetmessages: + msg4448
2013-05-03 00:00:00adminsetmessages: + msg4447
2013-05-03 00:00:00adminsetstatus: open -> extension
2011-08-19 00:00:00admincreate