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

2024-04-18


941. Explicit specialization of deleted function template

Section: 13.9.4  [temp.expl.spec]     Status: C++11     Submitter: Spicer     Date: 14 July, 2009

[Voted into WP at August, 2010 meeting.]

According to 13.9.4 [temp.expl.spec] paragraph 1, only non-deleted function templates may be explicitly specialized. There doesn't appear to be a compelling need for this restriction, however, and it could be useful to forbid use of implicitly-instantiated specializations while still allowing use of explicitly-specialized versions.

Proposed resolution (February, 2010):

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

An explicit specialization of any of the following:

can be declared...