This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 109a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2022-08-19


1451. Objects with no linkage in non-type template arguments

Section: 13.4.3  [temp.arg.nontype]     Status: CD4     Submitter: Daniel Krügler     Date: 2012-02-01

[Adopted at the November, 2014 meeting as part of paper N4268.]

According to 13.4.3 [temp.arg.nontype] bullet 1.3, only objects with linkage can be used to form non-type template arguments. Is this restriction still needed? It would be convenient to use block-scope objects as template arguments.

Rationale (February, 2012):

This is a request for an extension to the language and thus more appropriately addressed by EWG.