Title
[tiny] Core issue 1451, Objects with no linkage in non-type template arguments
Status
nad
Section
[temp.arg.nontype]
Submitter
Daniel Krügler

Created on 2012-02-01.00:00:00 last changed 126 months ago

Messages

Date: 2014-07-01.21:57:43

See Core issue 1451.

Discussed in Rapperswil 2014. It's not clear whether this is limited to static storage duration objects. EWG is worried about implications beyond that, and for Type<"abs">. How would this work with function templates? For (non-template) functions, a workaround is to declare the object at namespace scope, but then you don't get the lazy initialization guarantees.

Vandevoorde states that he'd like to actively vote against this. This would open special cases w.r.t. how we handle address constant expressions. 5.19 uses the same mechanism for string literals and static variables, both with no linkage. And we don't want to get into Type<"abs"> being distinct form Type<"abs">.

History
Date User Action Args
2014-07-01 21:57:43adminsetstatus: open -> nad
2012-02-01 00:00:00admincreate