Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-09-24 18:51:51

At 10:38 AM 9/23/2002, Richard Hadsell wrote:

>The 1.28.0 version of boost::scoped_ptr does exactly what I want, in
>respect. If you made it possible to copy or did anything else to allow
>to transfer ownership, it would be less useful. If you increased its
>from that of a single pointer, which it replaces, it would be less
>I use it as a data member as well as a temporary variable, because a data
>member's lifetime is just as well defined as any other kind of scope.
>Whenever anyone reads unfamiliar code that contains a scoped_ptr, he can
>easily determine when the object it points to will be deleted, just by
>looking at its scope and any calls to reset().
>I like its simple statement of ownership.

Me too. I'm a big fan of scoped_ptr. Making it "more powerful" will make it
less useful.


Boost list run by bdawes at, gregod at, cpdaniel at, john at