Hello all,
I have the following problem when trying to disambiguate the behaviour of a function in the most-derived class:
I am using:Code:class B { public: virtual void f() {} }; class C : public B { }; class D : public C, public B { public: virtual void f() {C::B::f();} // error: cannot call member function ‘virtual void B::f()’ without object };
g++ (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Thanks!!



LinkBack URL
About LinkBacks




.
CornedBee