I have a boost::shared_ptr
with a custom deleter attached. When converting this to weak_ptr
is the deleter information lost? If yes, how do I reattach the same deleter to shared_ptr
-s acquired from weak_ptr::lock()
method?
The feature I am implementing is a container of weak_ptr
-s pointing to the alive instances of some type. I need the custom deleter to remove the container entry for objects being deleted.
Thanks in advance