Title
Deduced return type for explicit specialization
Status
nad
Section
9.2.9.7 [dcl.spec.auto]
Submitter
John Spicer

Created on 2014-12-15.00:00:00 last changed 116 months ago

Messages

Date: 2015-05-15.00:00:00

Rationale (May, 2015):

An explicit specialization with a deduced return type can only match a template declared with a deduced return type, so the actual return type is not needed in order to match the explicit specialization with the template being specialized.

Date: 2022-11-20.07:54:16

The Standard does not indicate whether an explicit specialization of a function template can have a deduced return type. It seems a bit too much to require parsing the entire function body in order to tell which template is being specialized. In extreme cases, that could mean deferring access checks for the entire body of the function.

History
Date User Action Args
2015-05-25 00:00:00adminsetmessages: + msg5957
2014-12-15 00:00:00admincreate