|
Boost : |
From: Greg Colvin (gcolvin_at_[hidden])
Date: 2001-03-30 11:08:12
From: David Abrahams <abrahams_at_[hidden]>
>
> ----- 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
I have it all in my mail reader, thanks. I've been reading
the messages, but not carefully.
> 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.
I have no doubt that there is a problem, and am pretty sure the
fix is as described. But I'm not comfortable changing the code
or documentation until Beman reviews it.
> > > 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
>
>
> To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk