Say that we had a class, A, in which is defined as such:
Now this would allow us to do things such as:Code:class A
{
public:
A& operator=(const A& rhs);
A operator+(const float &rhs) const;
}
How could we make it so that:Code:A = A + 5;
would be valid?Code:A = 5 + A;
