Subject: Re: [boost] [PATCH Boost.smart_ptr] Add intrusive_ptr<>::release()
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-12-02 12:04:25
On Monday 02 December 2013 16:30:52 Jonathan Wakely wrote:
> 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()
Yes it does - it resets the pointer without running any deletion logic on the
pointed object. Whether it is correct or not in a particular context is
another (irrelevant) question.
The reset/release pattern is quite established in STL and Boost and I'd prefer
not to disturb it. This will only add confusion.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk