I'm using a doubly linked list and templates and I'm having trouble with inserting a new node and printing it in reverse. I can print the list in reverse when I append a new node to it, but when I insert a new node it won't show up. When I print the list normally the nodes that I inserted are there. I may be missing something obvious, if someone could help me out I would be most thankful.
Here is my code for my insert function and reverse function.