Boost logo

Boost Users :

Subject: Re: [Boost-users] [shared_ptr] boost::make_shared & std::tr1::shared_ptr
From: Geoff Hilton (geoff.hilton_at_[hidden])
Date: 2010-06-04 12:42:11


On 04/06/2010 9:25 AM, Andrew Holden wrote:
> On Thursday, June 03, 2010 2:15 PM, Geoff Hilton wrote:
>
>> It's not currently possible to mix boost::make_shared with the
>> shared_ptr implementation provided by<boost/tr1/memory.hpp>. Could
> this
>> be made possible or would mixing the two be a design flaw on my part?
>
> If I understand correctly,<boost/tr1/memory.hpp> uses your compiler's
> shared_ptr if it's available. I can think of no way to mix
> boost::make_shared with an arbitrary shared_ptr.
>
> If you need boost::make_shared, then I would recommend using it with
> boost::shared_ptr as defined in<boost/shared_ptr.hpp>.

Hmm. i just reviewed some stuff and I agree with you, there's no way it
can be made to work.


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