is there some language construct to do 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
}
obviously this is not what the using directive does, but is there some means of knitting together the vtables like this?
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.