M
Martin Vorbrodt
which is preferable and WHY?
class Complex {
....
friend Complex operator + (const Complex& lhs, const Complex& rhs);
OR
friend const Complex operator + (const Complex& lhs, const Complex& rhs);
OR either one but a member operator instead of a friend.
Thanx,
Martin
class Complex {
....
friend Complex operator + (const Complex& lhs, const Complex& rhs);
OR
friend const Complex operator + (const Complex& lhs, const Complex& rhs);
OR either one but a member operator instead of a friend.
Thanx,
Martin