From: Meryl Silverburgh (silverburgh.meryl_at_[hidden])
Date: 2007-05-08 01:35:43


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.