Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2006-03-29 18:13:08


Fernando Cacciola wrote:
> David Abrahams wrote:
>
>> I don't see why Peter is the only one who seems to be responding to
>> the auto_ptr rvalue implicit conversion technique. It just works.
>>

BTW, I forgot to mention that new_ is a great idea! :)

Many years ago there was a CUJ article presenting a Handle class which was
essentially like a share_ptr(new_) but built in a single class.
One of the strong points of that class was precisely that it totally avoided
raw pointers.
I liked it a lot and wonder ever since why it wasn't widely adopted.
Now the "handle instead of pointer" paradigm can start to become best
practice as it should have been for such a long time.

-- 
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com/

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