Making shared_ptr lose ownership of memory Languages

Making shared_ptr lose ownership of memory

I have a shared_ptr<MyProto> which I pass around. Eventually, in certain situations, I want pass the raw pointer to a function which then becomes the memory owner. In those cases the shared_ptr isn't responsible anymore for freeing the memory because the function I call took ownership. How do I get...
Read More