
29 Mar
2006
29 Mar
'06
11:13 p.m.
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/