Boost logo

Boost Users :

From: Richard Jennings (Richard.Jennings_at_[hidden])
Date: 2005-08-16 03:08:31

> > 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:

You can of course use shared_ptr, but then the intention is less clear.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at