invalid use of template name without an argument list

Write it like this:

template<typename T>
LinkedList<T>::LinkedList()
{
   start = nullptr;
   current = nullptr;
}

And similarly for other member functions. But you’ll run into another problem – declarations and definitions of a template can’t be separated to different files.

Leave a Comment