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

2024-03-20


923. Inline explicit specializations

Section: 13.9.4  [temp.expl.spec]     Status: CD2     Submitter: Daveed Vandevoorde     Date: 19 June, 2009

[Voted into WP at March, 2010 meeting.]

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.

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:...