Boost logo

Boost :

From: Fernando Cacciola (fcacciola_at_[hidden])
Date: 2001-12-21 13:09:28


----- Original Message -----
From: Peter Dimov <pdimov_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, December 21, 2001 2:56 PM
Subject: Re: [boost] BCB5, the pimpl idiom bug and the new Unit Test
Framework

> From: "Fernando Cacciola" <fcacciola_at_[hidden]>
> > On second thought, this conclusion leads me back to my original
proposal:
> > use the technique of grin_ptr<> with
> > scoped_ptr<>.
> >
> > It doesn't make sense to change scoped_ptr<> though,
>
> [...]
>
> On second thought, this actually makes sense to me. Scoped_ptr
requirements
> will change slightly, in that it will require a complete type only when
its
> constructor is instantiated.
>
> sizeof(scoped_ptr) will increase, but since scoped_ptr is noncopyable,
this
> will not have much impact (it's not meant to be put in containers.)
>
Well, this was my initial thought, which bounced forth and back.

What does everyone else think about it?

the 'grinning_ptr<>' I just uploaded could be replaced by scoped_ptr<> once
it has changed.

Fernando Cacciola
Sierra s.r.l.
fcacciola_at_[hidden]
www.gosierra.com


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