2 Dec
2013
2 Dec
'13
4:30 p.m.
On Dec 2, 2013 3:48 PM, "Andrey Semashev" wrote:
I'd vote to follow STL precedent rather than ATL.
But it doesn't do the same thing as unique_ptr::release() void f(std::unique_ptr<int> up) { std::shared_ptr<int> sp(up.release()); // ok } void f(boost::intrusive_ptr<int> ip) { std::shared_ptr<int> sp(ip.release()); // probably not ok }