参考:http://blog.youkuaiyun.com/hxz_qlh/article/details/13135433
只在堆上分配:将析构函数设为私有;
只在栈上分配:将operator new设为私有.
参考:http://blog.youkuaiyun.com/hxz_qlh/article/details/13135433
只在堆上分配:将析构函数设为私有;
只在栈上分配:将operator new设为私有.
转载于:https://www.cnblogs.com/573177885qq/p/5798458.html