
13 May
2009
13 May
'09
9:12 a.m.
Could you implement intrusively_refcounted with a pimpl owned by a shared_ptr? So a group of equivalent intrusively_refcounted objects might share a single dynamically allocated shared_ptr which the delete when the refcount hits zero, and it could also be used to obtain a weak_ptr for tracking.
Yes, I use this workaround where possible. I just wanted to be sure I didn't miss some straightforward solution. Thank you!