I have been trying to implement my own linked list class for didactic purposes.
I specified the \"List\" class as friend inside the Iterator declaration, but it doesn\'t
try adding a forward declaration
template class List;
at the start of Iterator.h -- that might be what you need to allow the friend declaration inside the Iterator class to work.
Iterator.h
friend
Iterator