Hello
I have a problem with error message: ...must be a nonstatic member function
unlike any I have found on forums.
My code is following:
1 2 3 4 5
class A {
public:
friendunsigned& operator=(unsigned&,A&);
};
Afterwards follows the definition of the functions.
Error message says, that this operator= must be a nonstatic member function, which it cannot be because the left operand is not member of the class.
I need to use this for the hash table.
Interesting is, that if I wrote + instead of =, the error disappeares.