Boost logo

Boost Users :

From: mark cox (melbournemark+boost-users_at_[hidden])
Date: 2006-11-28 17:36:45


wow, this seems like a great idea, a scoped_ptr with deleter would be
v.useful.
mark

On 11/29/06, Sohail Somani <s.somani_at_[hidden]> wrote:
>
> > -----Original Message-----
> > From: boost-users-bounces_at_[hidden]
> > [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> > Sohail Somani
> > > The deleter feature in shared_ptr is very useful for raii
> > > with any kind of
> > > resource (variables, functions, objects, etc.). Having it in
> > > scoped_ptr will
> > > offer the same advantage for noncopyable pointers.
> > >
> > > Thank you.
> >
> > +1 from me too but I think the reason is that people wanted
> > sizeof(scoped_ptr<T>) to be sizeof(T *) (or they don't want it to
> > change)
>
> A part solution could be a second template parameter but of course there
> can be no state.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net