obviously this is not what the using directive does, but is there some means of knitting together the vtables like this?Code:struct A { virtual void func()=0; void foo(){ func(); } }; struct C { virtual void func(){ std::cout << "C::func\n"; }; struct AC : public A,public C { using C::func; }; int main void() { AC ac; ac.foo(); // invokes C::func }
i realize i can inherit virtually from a common interface that defines the function, i'm just wondering if there is another means of achieving the same thing.