Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-03-29 21:10:01


----- Original Message -----
From: "Greg Colvin" <gcolvin_at_[hidden]>

> > > Then, scoped_ptr's docs contain an incorrect statement, and that is
better
> > > fixed.
> >
> > Agreed. Greg?
>
> I think so, but I havan't been following this thread very closely.
> Beman?

It's a short thread, check it out
http://groups.yahoo.com/group/boost/message/10311
Beman's travelling right now and will have plenty of backlog when he
returns. It would really help if you could come to a determination.

> > Ah, wonderful. We should put this riff in boost/utility.hpp
> >
> > template <class T>
> > void delete_(T const volatile* x)
> > {
> > sizeof(T);
> > delete x;
> > }
> >
> > Then "delete x" becomes boost::delete_(x)
>
> Yes. Of course some compilers might complain about
> the apparently useless line, so perhaps
>
> if (sizeof(T))
> delete x;
>
> Regardless, a comment is in order.

Good idea.

-Dave


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