|
Boost : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2001-04-03 03:55:57
Shankar Sai <sai.shankar_at_b...> wrote:
> Why cant we have in the scoped_ptr class declaration:
>
> private:
> enum { val = sizeof(T) };
>
> and avoid the need for it everywhere? Or am i missing
> something?
>
I think this will prevent instantination of scoped_ptr on an incomplete type,
which is neccessary.
-- Regards, Vladimir
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk