From: Russell Hind (rh_gmane_at_[hidden])
Date: 2005-04-28 05:18:47


David Gruener wrote:
> Hello,
>
> thanks for your answers. Yes, of course, i
> looked at the boost smart pointers.
> But, well, isn't a shared_ptr a shared_ptr because it
> shares ownership (via ref. counting)? :]

Only if you pass it to another object. It it is a private shared_ptr
then it gets automatically deleted, but won't get shared around.

But what about scoped_ptr?

Cheers

Russell