Cpmv Cpmv::operator+(const Cpmv & obj) const { std::cout << "Cpmv::operator+(const Cpmv & obj) const" << std::endl; // just display info return Cpmv(pi->qcode + obj.pi->qcode, pi->zcode + obj.pi->zcode); }
Cpmv Cpmv::operator+(const Cpmv &obj) const { std::string q_tmp = (pi->qcode + obj.pi->qcode); std::string z_tmp = (pi->zcode + obj.pi->zcode); return Cpmv(q_tmp, z_tmp); }