How do you make std::shared_ptr not call delete()

后端 未结 5 1725
挽巷
挽巷 2020-12-30 19:58

I have functions that take in std::shared_ptr as an argument so I am forced to use std::shared_ptr, but the object I am passing to the function is not dynamically allocated.

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