Код: Выделить всё
Type operator + (const Type &type);
Type &operator += (const Type &type);
Код: Выделить всё
friend Type operator + (const Type &type1, const Type &type2);
friend Type &operator += (const Type &type1, const Type &type2);
Подробнее здесь: https://stackoverflow.com/questions/465 ... t-properly
Мобильная версия