Boost logo

Boost :

Subject: Re: [boost] [shared_ptr] delete shared_ptr
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-03-17 18:50:12


On 17 March 2011 13:53, pavel <paul.cpprules_at_[hidden]> wrote:

>
> it deletes or otherwise releases guarded resource only if no other
> smart pointer holds a reference to the resource
>

Yes, we know what reset does. You haven't given an argument as to why
delete should do the same thing, and we've given you reasons why it isn't a
good idea.

-- 
 Nevin ":-)" Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404

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