Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-users][signals2] thread-safe disconnection for intrusively ref-counted objects
From: Igor R (boost.lists_at_[hidden])
Date: 2009-05-13 05:12:51

> 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!

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at