File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 37283728\end {codeblock }
37293729\end {example }
37303730
3731+ \pnum
3732+ A virtual function shall not be an explicit object member
3733+ function\iref {dcl.fct }.
3734+ \begin {example }
3735+ \begin {codeblock }
3736+ struct B {
3737+ virtual void g(); // \# 1
3738+ };
3739+ struct D : B {
3740+ virtual void f(this D&); // error: explicit object member function cannot be virtual
3741+ void g(this D&); // overrides \# 1; error: explicit object member function cannot be virtual
3742+ };
3743+ \end {codeblock }
3744+ \end {example }
3745+
37313746\pnum
37323747The \grammarterm {ref-qualifier}, or lack thereof, of an overriding function
37333748shall be the same as that of the overridden function.
Original file line number Diff line number Diff line change 35793579A \grammarterm {member-declarator} with an explicit-object-parameter-declaration
35803580shall not include
35813581a \grammarterm {ref-qualifier} or a \grammarterm {cv-qualifier-seq} and
3582- shall not be declared \keyword {static} or \keyword {virtual} .
3582+ shall not be declared \keyword {static}.
35833583\begin {example }
35843584\begin {codeblock }
35853585struct C {
You can’t perform that action at this time.
0 commit comments