急!急需帮忙!类模板与操作符重载
SeqList类中公有声明了
SeqList<T> operator=(SeqList<T>& L);
函数代码
template <class T>
SeqList<T>& SeqList<T>::operator=(SeqList<T>& L)
{
if(this == &L) return *this;
T value;
int n = L.Length();
T* srcptr = &L;
while(n--)
*this++ = *srcptr++;
return *this;
}
以上是代码,错误提示是error C2244: 'SeqList<T>::=' : unable to resolve function overload
希望高人指点,谢谢。