S
Shekhar
template<typename T> struct A{}; //line 1
template<typename T> struct B{}; //line 2
template<typename T> struct B<A<T> > {}; //line 3: partial
specialization of B
VC6.0 compiler results for the above:
at line 3:
error C2989: 'B<struct A<T> >' : template class has already been
defined as a non-template class
error C2988: unrecognizable template declaration/definition
Is there anyway to achieve the above without using partial
specialization of templates
Regards
Shekhar
template<typename T> struct B{}; //line 2
template<typename T> struct B<A<T> > {}; //line 3: partial
specialization of B
VC6.0 compiler results for the above:
at line 3:
error C2989: 'B<struct A<T> >' : template class has already been
defined as a non-template class
error C2988: unrecognizable template declaration/definition
Is there anyway to achieve the above without using partial
specialization of templates
Regards
Shekhar