Deleting an object in boost wrapper in C++
I have a class which has an element
std::list<boost::reference_wrapper<polygonType> > m_children;
When an object is created out of this class, i store all the children of
that object as reference in this variable. What I wanted to do is, when
the destructor of the object is called, I wanted the destructor of the
children to be called to.
Is that an automatic behavior in this case ? or do I need to write
something for it, give this list has references ?
If I want them to not be deleted what do I need to do ? If I want them
deleted what do I need to do ?
This basically comes down to some of the design decisions I made and how I
want them fixed.
No comments:
Post a Comment