If a class has a pointer we must do deep copy with assigment operator overloading(not shallow copy).
So is it necessary do deep copy(operator= overloading) if a class has a member vector? ?
Aucun commentaire:
Enregistrer un commentaire