Container of a hierarchy of objectsIt's not just the [code]B[/code] objects. Any of the classes in the hierarchy must be identifiable.
Container of a hierarchy of objects[quote]Where I am pushing it tht way?[/quote] In your solution: [code] for(auto p: container) { ...
Container of a hierarchy of objectsI [i]did[/i] come up with a solution similar to yours. In that context, is there a neater way of sto...
Container of a hierarchy of objects[code]p[/code] is of type [code]A*[/code] and won't pushing that into a [code]std::vector<B*> [/cod...
Container of a hierarchy of objectsHow do we design a container of objects all of which belong to some subclass which directly/indirect...
This user does not accept Private Messages