E
eas
Can call copy constructor inside operator=? Can call operator= from inside
constructor?
My understanding is both members in a class contain a "this" pointer. Even
if the class has a member of pointer, for example, char* (I mention this
because that's one reason we need copy constructor/assignment operator),
this will not affect since during the above said calling, the pointer member
will be assigned or initialized.
However I may miss something here. Could somebody correct me if I am wrong?
Thanks in advance!
constructor?
My understanding is both members in a class contain a "this" pointer. Even
if the class has a member of pointer, for example, char* (I mention this
because that's one reason we need copy constructor/assignment operator),
this will not affect since during the above said calling, the pointer member
will be assigned or initialized.
However I may miss something here. Could somebody correct me if I am wrong?
Thanks in advance!