Boost logo

Boost :

Subject: Re: [boost] [SmartPtr] alternative to enable_shared_from_this
From: Peter Dimov (lists_at_[hidden])
Date: 2017-01-04 10:41:39


Roberto Hinz wrote:
> Dear Boost Community,
>
> I've been following this list for a time with the desire of contributing
> to Boost. It seems to me a good idea to start with small and easy to
> review proposals, before attempting anything big.
>
> So my first shot is shared_handle class, an alternative to
> enable_shared_from_this that doesn't suffer from multiple inheritance
> issues. It also provides the capability of instantiating a shared_ptr to a
> member object.
>
> doc: https://robhz786.github.io/smart_ptr/shared_handle.html

We already have something very similar, enable_shared_from_raw. It's still a
base class, but since it's not templated, multiple inheritance scenarios can
use virtual inheritance from enable_shared_from_raw.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk