
18 Mar
2011
18 Mar
'11
9:25 p.m.
On Fri, Mar 18, 2011 at 1:54 PM, pavel <paul.cpprules@gmail.com> 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