S
sygnosys
Hi,
I'm using VC++ 2005 can anyone tell me what's wrong with the following
piece of code.
It simply does not compile spitting out the following error "error
C2039: 'TypeDerived' : is not a member of 'Derived<X>'"
template <class X, class Y>
class Base {
public:
typename X::Type m_DerivedTypeA;
typename Y::TypeDerived m_DerivedTypeB;
};
class OutSide
{
public:
typedef int Type;
};
template <class X>
class Derived: public Base<X,Derived<X> >
{
public:
typedef int TypeDerived;
};
Derived<OutSide> variable;
Thanks
Cláudio Albuquerque
I'm using VC++ 2005 can anyone tell me what's wrong with the following
piece of code.
It simply does not compile spitting out the following error "error
C2039: 'TypeDerived' : is not a member of 'Derived<X>'"
template <class X, class Y>
class Base {
public:
typename X::Type m_DerivedTypeA;
typename Y::TypeDerived m_DerivedTypeB;
};
class OutSide
{
public:
typedef int Type;
};
template <class X>
class Derived: public Base<X,Derived<X> >
{
public:
typedef int TypeDerived;
};
Derived<OutSide> variable;
Thanks
Cláudio Albuquerque