合成的默认构造函数一般适用于仅包含类类型成员的类。
The synthesized default constructor often suffices for classes that contain only members of class type.
具有指针成员且使用默认合成复制构造函数的类具有普通指针的所有缺陷。
Classes that have pointer members and use default synthesized copy control have all the pitfalls of ordinary Pointers.
具有指针成员且使用默认合成复制构造函数的类具有普通指针的所有缺陷。
Classes that have pointer members and use default synthesized copy control have all the pitfalls of ordinary Pointers.
应用推荐