|
Boost : |
From: Maik Beckmann (beckmann.maik_at_[hidden])
Date: 2008-05-19 03:11:31
Am Montag 19 Mai 2008 08:02:50 schrieb Emil Dotchevski:
> > Am Sonntag 18 Mai 2008 19:28:42 schrieb Giovanni Piero Deretta:
> > > On Sun, May 18, 2008 at 3:52 PM, Maik Beckmann
> > > I'm not a guru, but Instead of a vector<shared_ptrs<T> >, I'have used
> > > a shared_ptr <vector<T> > to implement recursive data structures. A
> > > clone pointer would work even better.
> >
> > Giovanni, very nice!
>
> A standard conforming compiler is allowed to reject std::vector<T> for
> incomplete T.
>
But in this specific recursive case T is self_type and thus complete when it
comes to new vector<self_type>, right?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk