Is the creator of copy A called, thus creating an object independent of the function returned (by reference)?
Yes. The copy constructor refers to the source object as its parameter, and the copy does not depend on the source object if the copy constructor performs a deep copy.
source
share