I have a templatised class, and inside it I want to define a templatised operator. But the problem is that I'm succeeding with this only if I combine the prototype and the implementation. Could you guys tell me how to make it in 2 parts?
1 2 3 4 5 6 7 8 9 10 11
template <typename T>
class myClass
{
T x;
public:
template <typename U>
myClass<T>& operator=(const vector<U> src)
{
x = src;
}
};