c++ Getting error for templatized operator overloading with deques?
in a file called arraylist.cpp (the implementation file) i define the definition as follows:
template<typename T>
T& ArrayList<T>::operator[](int index) throw (ArrayListException)
{
Node<T>* temp=rear;
int tempCount=0;
if (head==NULL)
throw ArrayListException("Array List Exception: operator[] called on empty array.");
else if (index<0)
[…]
Filed under: Uncategorized | No Comments »