Boost logo

Boost :

Subject: Re: [boost] deleting smart pointer
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2011-03-18 17:25:08


On Fri, Mar 18, 2011 at 1:54 PM, pavel <paul.cpprules_at_[hidden]> wrote:
[...]

> no offence but is my english really so bad that almost noone can
> understand what i am talking about?
>
>
I don't think so.

If you're adamant about doing this, why don't you just use a delete_ (or,
maybe better spelled, release or reset or delete_or_reset) free function
that's overloaded both for raw pointers and for smart pointers? I'm not
convinced you have a legitimate use case to begin with, but under the
assumption that you do, this seems like a better resolution than playing
games with the smart_ptr interface...

- Jeff


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