Hi!
Let's say I have a class Point:
class Point {
int x, y;
public:
Point& operator+=(const Point &p) { x=p.x; y=p.y; return *this; }
};
Why can I not call this as such:
Point p1;
p1 += Point(10,10);
And is there any way to do this, while still having a reference as the argument?