Boost logo

Boost :

Subject: Re: [boost] [PATCH Boost.smart_ptr] Add intrusive_ptr<>::release()
From: Jonathan Wakely (jwakely.boost_at_[hidden])
Date: 2013-12-02 11:30:52


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
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk