|
Boost : |
Subject: Re: [boost] [SmartPtr] alternative to enable_shared_from_this
From: Edward Diener (eldiener_at_[hidden])
Date: 2017-01-04 10:31:01
On 1/3/2017 4:39 PM, 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
> source: https://github.com/boostorg/smart_ptr/compare/develop...
> robhz786:develop
>
> Unfortunately, the implementation produces at least one regression: clang
> 3.1 crashes when it compiles cpp11_pointer_cast_test.cpp with -std=c++11.
> There may be others since I couldn't test in all compilers used in the
> regression tests.
>
> Nevertheless, is there any interest?
clang 3.1 is ancient. I would not worry about it. Your code does not
have to work with ancient compilers which no one uses anymore.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk