this is a piece of my header file that is a template and my implementtion file that is using it.I keep getting errors and dont know why,any help would be appreciated.
template<class T>
class List
{ public:
private:
T *list;
int size;
int numElements;
bool isValid(int location) const;
};
This is the implementation file
template<class T>
bool List<T>::isValid(int location) const
{
return (location>=0 && location<numElements);
}