samedi 28 octobre 2017

Default Assigment Operator is Good For Vector?

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