Date: Mon, 1 Apr 2024 13:25:52 +1100
Hi,
In 9.12 p164 General [dcl.dcl] 14882:2020(E) :
------------------
12
A nodeclspec-function-declaration shall declare a constructor, destructor, or
conversion function.
[Note 3 : A nodeclspec-function-declaration can only be used in a
template-declaration (13.1), explicit-instantiation (13.9.3),
or explicit-specialization (13.9.4). — end note]
------------------
nodeclspec-function-declaration :
attribute-specifier-seqopt declarator ;
I don't understand Note 3.
What would an example be of a nodeclspec-function-declaration used in a
template-declaration ?
In 9.12 p164 General [dcl.dcl] 14882:2020(E) :
------------------
12
A nodeclspec-function-declaration shall declare a constructor, destructor, or
conversion function.
[Note 3 : A nodeclspec-function-declaration can only be used in a
template-declaration (13.1), explicit-instantiation (13.9.3),
or explicit-specialization (13.9.4). — end note]
------------------
nodeclspec-function-declaration :
attribute-specifier-seqopt declarator ;
I don't understand Note 3.
What would an example be of a nodeclspec-function-declaration used in a
template-declaration ?
Received on 2024-04-01 02:25:57