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
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk