Boost logo

Boost Users :

Subject: Re: [Boost-users] Convert boost::shared_ptr to std::shared_ptr for boost::dll::import
From: David Demelier (markand_at_[hidden])
Date: 2018-04-13 06:21:50


On Thu, 2018-04-12 at 15:20 -0500, Nevin Liber wrote:
> Look at <https://stackoverflow.com/questions/12314967/cohabitation-of
> -boostshared-ptr-and-stdshared-ptr>, which does a ptr.reset() in the
> deleter. It also describes the caveats with this hack.

Hmmm, it effectively works with ptr.reset() in the shared_ptr destructor. But I can't understand why it is needed though. Thanks!

Regards

-- 
David

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net