2 Dec
2013
2 Dec
'13
5:04 p.m.
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.