Well posting your actual error message, rather than "an error" would be so much more informative.

> template <class T, class U = SingleLinkedNode<T>>
Also, you might find adding a space between...