Thanks very much for the advice - I seem to have the thing working now, with ChildTrees containing lists of pointers.
I'm aware I'll have to be really careful with allocation, so I'm planning to override my delete & new operators to keep track of allocation (I'm from the embedded world, so...
I know there's some C++ geniuses out there - hopefully somebody can solve this problem I've encountered. I'm fairly new to C++ (though I've been using C for years), so go easy on me :)
I want a class (which I'm going to use in a CList), which can contain lists of its own type. For example...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.