Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Dec 10, 2002
Messages
3
Location
SE
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

Back
Top