In my text book they give an example of overloading the + operator
Sales_item operator+ (const Sales_item& lhs, const Sales_item& rhs)
{
Sales_item ret(lhs);
ret += rhs;
return ret;
}
But when I try it for my linked list, it tells me it can only take zero or one argument.
What is it that I'm not seeing and how would you even add 2 objects if you can't take 2 arguments?