prog.cpp: In instantiation of ‘void LinkedList<T>::add(LinkedList<T>&) [with T = std::basic_string<char>]’:
prog.cpp:54:25: required from here
prog.cpp:35:10: error: cannot convert ‘LinkedList<std::basic_string<char> >*’ to ‘std::basic_string<char>*’ in assignment
next = &otherList;
^
prog.cpp: In instantiation of ‘void LinkedList<T>::print() [with T = std::basic_string<char>]’:
prog.cpp:55:19: required from here
prog.cpp:46:17: error: cannot convert ‘std::basic_string<char>*’ to ‘LinkedList<std::basic_string<char> >*’ in assignment
current = current->next;
^