P
persres
Hello,
I have a template like below :
template<class T, class U> struct X
{
void f();
};
I want a partial specialization as :
template <class T>
void X<T, char>::f() { cout << "Partial specialization 1" << endl; }
It doesnt work. My Visual studio 2008 compiler says :
error C3860: template argument list following class template name must
list parameters in the order used in template parameter list
error C2976: 'X<T,U>' : too few template arguments
Any help please?
Thanks
I have a template like below :
template<class T, class U> struct X
{
void f();
};
I want a partial specialization as :
template <class T>
void X<T, char>::f() { cout << "Partial specialization 1" << endl; }
It doesnt work. My Visual studio 2008 compiler says :
error C3860: template argument list following class template name must
list parameters in the order used in template parameter list
error C2976: 'X<T,U>' : too few template arguments
Any help please?
Thanks