We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4e9333 commit ac3ed31Copy full SHA for ac3ed31
source/derived.tex
@@ -767,10 +767,10 @@
767
bp->vf1(); // calls \tcode{Derived::vf1()}
768
bp->vf2(); // calls \tcode{Base::vf2()}
769
bp->f(); // calls \tcode{Base::f()} (not virtual)
770
- B* p = bp->vf4(); // calls \tcode{Derived::pf()} and converts the
+ B* p = bp->vf4(); // calls \tcode{Derived::vf4()} and converts the
771
// result to \tcode{B*}
772
Derived* dp = &d;
773
- D* q = dp->vf4(); // calls \tcode{Derived::pf()} and does not
+ D* q = dp->vf4(); // calls \tcode{Derived::vf4()} and does not
774
// convert the result to \tcode{B*}
775
dp->vf2(); // ill-formed: argument mismatch
776
}
0 commit comments