|
Boost Users : |
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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net