4 Jan
2017
4 Jan
'17
3:41 p.m.
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.