F
fl
Hi,
I read "C++ primer". In the part "The synthesized Destructor", it has the statements below the dot line. I especially do not understand why it mentions built-in type in its first line? The synthesized destructor only destroysthe user contructed class type?
Before the dot line citations, it has said that the synthesized destructor destroying the members in reverse order from the declaration. What can the synthesized destructor do? I am confused after the author mentions built-inand compound type. Could you explain it to me?
Thanks,
......
"Destroying a member of built-in or compound type has no effect. In particular, the synthesized destructor does not delete the object pointed to by a pointer member"
I read "C++ primer". In the part "The synthesized Destructor", it has the statements below the dot line. I especially do not understand why it mentions built-in type in its first line? The synthesized destructor only destroysthe user contructed class type?
Before the dot line citations, it has said that the synthesized destructor destroying the members in reverse order from the declaration. What can the synthesized destructor do? I am confused after the author mentions built-inand compound type. Could you explain it to me?
Thanks,
......
"Destroying a member of built-in or compound type has no effect. In particular, the synthesized destructor does not delete the object pointed to by a pointer member"