且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

复制具有引用类型的成员变量的C ++类

更新时间:2023-02-03 07:44:58

是的,如果您需要支持分配指针而不是引用几乎是你唯一的选择。

Yes, if you need to support assignment, making it a pointer instead of a reference is nearly your only choice.