[Solved] Template overloaded = operator works in one class and fails to compile in another? [closed]


You declare a class template PointIndices, but misspell it in the function definition:

template<typename T>
PointIndicess<T>& PointIndices<T>::operator=(const PointIndicess<T>& point)
//          ^ extra "s" here                                   ^ and here

solved Template overloaded = operator works in one class and fails to compile in another? [closed]