If I have a class called Connection for which I have defined both the copy constructor and the assignment operator=.
When I write the code Request r2 = r1; (where r1 has been defined through the constructor: Connection r1), am I calling the copy constructor or the assignment operator=?
Aucun commentaire:
Enregistrer un commentaire