Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-04-05 13:14:18


From: "Beman Dawes" <bdawes_at_[hidden]>

> At 01:20 PM 4/5/2001, David Abrahams wrote:
>
>
> >> * Destructors become slightly slower.
> >
> >How does /that/ happen??
>
> // C.hpp
> class Cimpl;
> class C {
> public:
> ~C();
> ^^^^^ no long inline
> private:
> boost::scoped_ptr<Cimpl> impl;
> };

While on the subject, I have uploaded impl_ptr.hpp that is supposed to
support this idiom. It's actually a part of a larger library that I'm
working on but should be useful as-is.

--
Peter Dimov
Multi Media Ltd.

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