File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 3728
3728
\end {codeblock }
3729
3729
\end {example }
3730
3730
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
+
3731
3746
\pnum
3732
3747
The \grammarterm {ref-qualifier}, or lack thereof, of an overriding function
3733
3748
shall be the same as that of the overridden function.
Original file line number Diff line number Diff line change 3578
3578
A \grammarterm {member-declarator} with an explicit-object-parameter-declaration
3579
3579
shall not include
3580
3580
a \grammarterm {ref-qualifier} or a \grammarterm {cv-qualifier-seq} and
3581
- shall not be declared \keyword {static} or \keyword {virtual} .
3581
+ shall not be declared \keyword {static}.
3582
3582
\begin {example }
3583
3583
\begin {codeblock }
3584
3584
struct C {
You can’t perform that action at this time.
0 commit comments