Title
Explicit instantiation of constexpr or inline variable template
Status
cd5
Section
13.9.3 [temp.explicit]
Submitter
John Spicer

Created on 2016-07-14.00:00:00 last changed 48 months ago

Messages

Date: 2017-08-15.00:00:00

Proposed resolution (August, 2017):

Change 13.9.3 [temp.explicit] paragraph 1 as follows:

A class, function, variable, or member template specialization can be explicitly instantiated from its template. A member function, member class or static data member of a class template can be explicitly instantiated from the member definition associated with its class template. An explicit instantiation of a function template or, member function of a class template, or variable template shall not use the inline or constexpr specifiers.
Date: 2017-11-15.00:00:00

[Accepted as a DR at the November, 2017 meeting.]

According to 13.9.3 [temp.explicit] paragraph 1,

An explicit instantiation of a function template or member function of a class template shall not use the inline or constexpr specifiers.

Should this apply to explicit specializations of variable templates as well?

(See also issues 1704 and 1728).

History
Date User Action Args
2020-12-15 00:00:00adminsetstatus: dr -> cd5
2018-02-27 00:00:00adminsetmessages: + msg6125
2016-07-14 00:00:00admincreate