Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-10-19 14:30:17


Robert Fendt wrote:
> Hi,
>
> I have a somewhat peculiar problem concerning the shared_ptr template.
> I use an STL container to hold several shared_ptr values. When the
> container is destroyed, all the destructors are called correctly, but
> the memory is not freed. Furthermore, shared_ptr usage introduces a
> 100x memory overhead (or more) in my case. Compiler system is GCC.

Does it also happen with libstdc++'s own std::tr1::shared_ptr in
<tr1/memory>? If it does, you might want to ask the same question on the
libstdc++ list. (Testing a simple deque<A> is also worth trying.)


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