P
pit3k
I dare to bother you again.
Given a template class:
template <typename T>
class ClassA {
T t;
public:
void jump(T _t);
void die();
};
I need a specialization of this class to provide different implementation of
jump() method for realizations of this class with type vector<Te> where Te
is an arbitrary type.
Unfortunatelly this does not work (compile):
template <typename Te>
class classA< vector<Te> > {
vector<Te> t;
public:
void jump(vector<Te> _t);
};
How can I do it?
Given a template class:
template <typename T>
class ClassA {
T t;
public:
void jump(T _t);
void die();
};
I need a specialization of this class to provide different implementation of
jump() method for realizations of this class with type vector<Te> where Te
is an arbitrary type.
Unfortunatelly this does not work (compile):
template <typename Te>
class classA< vector<Te> > {
vector<Te> t;
public:
void jump(vector<Te> _t);
};
How can I do it?