Hi
I have a rather outlandish problem where I want to call a virtual
function which is (sort of) hidden by a derived class. For instance
class A { virtual void func(); };
class B: public A { virtual void func(); }
void some_routine()
{ B b;
b.func(); // will call B::func
??? // how to call A::func() for the b object
}
I know how to do this within the definition of a member. For instance
void B::func()
{
A::func();
}
but I need it outside the class.
In case you wonder why I need it... I am writing a test program. In my
case A::func() and B::func() should give the same results, but
B::func() does it faster. My test program wants to check if the
results are indeed the same.
Thanks for any help!
Kris