I'm trying to overload the < operator for my nested Node class inside my LinkedList class. I have it setup like this:
LinkedList<T>::Node& LinkedList<T>::Node::operator<(const LinkedList<T>::Node& rhs){
return rhs;
}
But I just get the error
1>c:\users\kevin\workspace\linkedlist\linkedlist.h(185): warning C4183: '<': missing return type; assumed to be a member function returning 'int'
I try to return 1 but that doesn't work either.