This is an absolute WTF:There are some seriously bazaar things in the posted code.Code:template <typename T> void List<T>::swap(Node* x){ Node* temp = x->next; x->next = x->prev; x->prev = temp; }
Stop reinventing the standard C++ library!
This is an absolute WTF:There are some seriously bazaar things in the posted code.Code:template <typename T> void List<T>::swap(Node* x){ Node* temp = x->next; x->next = x->prev; x->prev = temp; }
Stop reinventing the standard C++ library!
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"