0
Because if the types of the two arguments of the operator+ matches the types that the operator+ needs, that function is called. For example: Vector operator+(const Vector& a, const Vector& b) { ... } Now when doing v1 + v2 for example, this newly created function is called.
2nd Jul 2016, 11:55 PM
Garme Kain
Garme Kain - avatar