Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing base members

Status
Not open for further replies.

zolee69

Computer
Dec 10, 2002
3
Hi everyone.

To avoiding virtual inheritance I'm trying to resolve my problem with templates but, now I have a new one:

Class B
{...};
template <class Base> class F1 : public Base
{
void foo() {..}
};
template <class Base> class F2 : public Base
{
void foo() {..}
};
template <class Base> class F3 : public Base
{
void foo() {..}
};

class D1 : public F3<F2<F1<B> > > {...};
class D2 : public F2<F1<B> > {...};

If d1 and d2 are pointers to D1 and D2, how can I access function foo, for example, in F2 ?

Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor