Boost logo

Boost :

From: JH (jupiter.hce_at_[hidden])
Date: 2019-08-02 07:10:19

On 8/2/19, Peter Dimov via Boost <boost_at_[hidden]> wrote:
> The shared_ptr<Derived> that is returned by the static_pointer_cast shares
> the same reference count as the original shared_ptr<Base>, so it shouldn't
> matter.

Good point, I missed out that part. That function cannot be virtual
but I guess it does no matter, that should be safer to use.

Thanks Peter.

- jupiter

Boost list run by bdawes at, gregod at, cpdaniel at, john at