Title
Internal-linkage non-type template arguments
Status
c++11
Section
13.4.3 [temp.arg.nontype]
Submitter
US

Created on 2010-08-03.00:00:00 last changed 131 months ago

Messages

Date: 2010-11-15.00:00:00

[Voted into the WP at the November, 2010 meeting.]

Date: 2010-08-15.00:00:00

Proposed resolution (August, 2010):

Change 13.4.3 [temp.arg.nontype] bullet 1.3 as follows:

  • the address of an object with static storage duration and external or internal linkage or a function with external or internal linkage, including function templates...

This resolution also resolves issue 1154.

Date: 2010-08-03.00:00:00
N3092 comment DE 12

Now that local classes can be used as template arguments, it seems odd that there are “external linkage” restrictions on non-type template parameters. The addresses of objects and functions with internal linkage should be permitted as well.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetstatus: dr -> fdis
2010-11-29 00:00:00adminsetmessages: + msg3199
2010-11-29 00:00:00adminsetstatus: ready -> dr
2010-08-23 00:00:00adminsetmessages: + msg2805
2010-08-03 00:00:00admincreate