|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2002-09-17 11:02:22
From: "Peter Dimov" <pdimov_at_[hidden]>
>
> It seems to me that the requirement, as stated, is too strict even for
> scoped_ptr. A scoped_ptr<T> can be instantiated with T being an
incomplete
> type:
>
> class X;
>
> class Y
> {
> public:
>
> Y();
> ~Y();
>
> private:
>
> scoped_ptr<X> px;
> };
>
> Y y; // scoped_ptr<X> instantiated here
Very true. And that's a good thing. New wording is definitely needed.
-----------------------------------------------------------
David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk