10
Declarations
[dcl.dcl]
10.1
Specifiers
[dcl.spec]
10.1.2
Function specifiers
[dcl.fct.spec]
1
#
Function-specifier
s
can be used only in function declarations
.
function-specifier:
virtual
explicit
2
#
The
virtual
specifier shall be used only in the initial declaration of a non-static class member function; see
[class.virtual]
.
3
#
The
explicit
specifier shall be used only in the declaration of a constructor or conversion function within its class definition; see
[class.conv.ctor]
and
[class.conv.fct]
.