[shared_ptr] boost::make_shared & std::tr1::shared_ptr

It's not currently possible to mix boost::make_shared with the
shared_ptr implementation provided by

It's not currently possible to mix boost::make_shared with the shared_ptr implementation provided by
. Could
On Thursday, June 03, 2010 2:15 PM, Geoff Hilton wrote: this
be made possible or would mixing the two be a design flaw on my part?
If I understand correctly,

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
. Could this be made possible or would mixing the two be a design flaw on my part? If I understand correctly,
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
.
Hmm. i just reviewed some stuff and I agree with you, there's no way it can be made to work.
participants (2)
-
Andrew Holden
-
Geoff Hilton