
19 May
2008
19 May
'08
7:11 a.m.
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?