How to force only smart pointers instance for a class?

后端 未结 2 1809
庸人自扰
庸人自扰 2021-02-04 10:53

I\'ve been working on a way to prevent user of using a class without smart pointers. Thus, forcing them to have the object being heap allocated and managed by smart pointers. In

2条回答
提交回复
热议问题