Boost Users :
Subject: Re: [Boost-users] [shared_ptr] boost::make_shared & std::tr1::shared_ptr
From: Andrew Holden (aholden_at_[hidden])
Date: 2010-06-04 09:25:01
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
> 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>.
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