Boost logo

Boost :

Subject: Re: [boost] [shared_ptr] delete shared_ptr
From: pavel (paul.cpprules_at_[hidden])
Date: 2011-03-17 15:20:25


 Kenny wrote on Thursday, March 17, 2011 at 22:08:51:
> On 3/17/2011 2:13 PM, pavel wrote:
>> and at last can you please give a couple of reasons why delete'ing
>> smart pointers is a bad idea?

> Because it's a lie. "delete" should delete something, and not be
> overloaded to perform non-obvious, unrelated logic. A perfect example
> is how the proposed usage of "delete" confused Frank Mori Hess. Was it
> unreasonable for him to see "delete" and assume that it was actually
> deleting something?
i disagree with you
in my view it perfectly fits
and i believe Frank just misread my message

> The same can be accomplished using type traits or function overloading.
sure it can

-- 
Pavel
P.S.
if you notice a grammar mistake or weird phrasing in my message
please point it out

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