
4 Jun
2010
4 Jun
'10
7:25 a.m.
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>.