C++ operator+ and operator+= overloading

operator+() should not return a reference type as it is a new (locally declared) instance that holds the result of the operation.

Leave a Comment