I have set a of objects
struct card {
int rank;
int suit;
}
typedef std::pair<card, card> hand;
hand operator=(const hand& rhs);
I want to make a new object of type hand = to an other hand. but I get
error: 'hand operator=(const hand&)' must be a nonstatic member function
how do I make this operator nonstatic?