The only piece of code that seems to maybe have that error is:
I believe you need something like this:Code:friend class LinkedList<; //!< LinkedList can access private members of LLNode
Or something like this so LLNode knows that LinkedList is a template classCode:template <typename T> class LLNode { friend class LinkedList<T>; ... };