
8 May
2007
8 May
'07
5:35 a.m.
If I have an attribute of a vector of boost shared_ptr in a class, like this: class A; class B { public : ~B() { ...} private: std::vector< boost::shared_ptr<A> > aVector; }; What do I need to do in the destructor of B so that all the memory used by a vector of shared_ptr of A ('aVector') will be freed correctly? Thank you.