behaviour of the implicit copy constructor / assignment operator
Posted
by Tobias Langner
on Stack Overflow
See other posts from Stack Overflow
or by Tobias Langner
Published on 2010-05-06T07:42:50Z
Indexed on
2010/05/06
7:48 UTC
Read the original article
Hit count: 266
Hello,
I have a question regarding the C++ Standard.
Suppose you have a base class with user defined copy constructor and assignment operator. The derived class uses the implicit one generated by the compiler.
Does copying / assignment of the derived class call the user defined copy constructor / assignment operator? Or do you need to implement user defined versions that call the base class?
Thank you for your help.
© Stack Overflow or respective owner