I have question, in this case should I use reference to overload operator or shouldn't?
Everything works fine with and without reference.
Vector & operator +=( const Vector & v )
{
this->x += v.x;
this->y += v.y;
return * this;
}
Vector operator +=( const Vector v )
{
this->x += v.x;
this->y += v.y;
return * this;
}
So which option is better to use?