Title
Inline explicit specializations
Status
cd2
Section
13.9.4 [temp.expl.spec]
Submitter
Daveed Vandevoorde

Created on 2009-06-19.00:00:00 last changed 143 months ago

Messages

Date: 2010-03-15.00:00:00

[Voted into WP at March, 2010 meeting.]

Date: 2009-11-15.00:00:00

Proposed resolution (November, 2009):

Change 13.9.4 [temp.expl.spec] paragraph 14 as follows:

An explicit specialization of a function template is inline only if it is explicitly declared to be with the inline specifier or defined as deleted, and independently of whether its function template is inline. [Example:...
Date: 2009-06-19.00:00:00

According to 13.9.4 [temp.expl.spec] paragraph 14,

An explicit specialization of a function template is inline only if it is explicitly declared to be...

This could be read to require that the inline keyword must appear in the declaration. However, 9.5 [dcl.fct.def] paragraph 10 says that a deleted function is implicitly inline, so it should be made clear that defining an explicit specialization as deleted makes it inline.

History
Date User Action Args
2010-03-29 00:00:00adminsetmessages: + msg2741
2010-03-29 00:00:00adminsetstatus: tentatively ready -> cd2
2010-02-16 00:00:00adminsetmessages: + msg2513
2010-02-16 00:00:00adminsetstatus: drafting -> tentatively ready
2009-06-19 00:00:00admincreate