Boost logo

Boost Users :

From: Boris (boriss_at_[hidden])
Date: 2008-08-18 10:53:32


On Fri, 04 Jul 2008 19:16:35 +0200, Meryl Silverburgh
<silverburgh.meryl_at_[hidden]> wrote:

> Hi,
>
> I have a legacy application in C++, and I would like to switch it to
> use boost smart pointers.
> Can you please tell me what is the best approach for the switch?
>
> This application uses stl vector as the class container,
> vector<MyClass*>

If the vector is the only owner of MyClass instances you could replace it
with boost::ptr_vector<MyClass>.

Boris

> [...]


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