4 ms·
Smart pointers are about ownership. If "some framework is using different conventions internally" then that framework entirely owns the resource and access to i
by T-zex 11y ago
Smart pointers are about ownership. If "some framework is using different conventions internally" then that framework entirely owns the resource and access to it is not managed by smart pointers. That is a natural, fully idiomatic behaviour of modern C++ and is not related to any specific library.
- seivan 11y agoyeah I am familiar with ownership from Obj-C reference counting. But the problem is when your own code interacts with the framework that uses its own internal way of managing memory (ironically it's a copy of Obj-C reference counting) Right now I've decided just to go with the frameworks way of doing things and inherit from their base object. The problem comes when I want to use this code outside in a different project :-/