Hi,
I found a problem with operator overloading. Consider following class:
class Number
{
public:
int value;
int operator +(int v)
{ return value + v; }
};
Number n; n.value = 5;
Now, n+5 successfuly returns 10, but 5+n gives error
error C2677: binary '+' : no global operator found which takes type ...
How to solve it?