|
Boost Users : |
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-08-16 10:36:10
"Richard Jennings" <Richard.Jennings_at_[hidden]> wrote in message
news:1CFE360F7FED6D46A110BEF31F2F54FE02A0B4_at_JUPITER.Teraview.local...
> >
> > > b) If I recall correctly, the borland version of scoped_ptr
> > fails when
> > > the type is incomplete - which makes it not useful for implementing
> > > the PIMPL idiom.
> >
> > it always fails unless the destructor is included first in
> > the cpp file IIRC.
> >
>
> Sadly this does not work on BCB even if the destructor is defined in the
> cpp file, which means that scoped_ptr can't be used for pimpl with this
> compiler. The details are here:
> http://lists.boost.org/Archives/boost/2001/12/21796.php
>
> You can of course use shared_ptr, but then the intention is less clear.
right...and you don't prohibit copying.
-Thorsten
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