Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-04-28 16:19:27


Pavel Antokolsky aka Zigmar wrote:
> And another pitfal with both auto_ptr and shared_ptr (at least on
> VC7.1 compiler) is if you don't provide expicit destructor, the
> generated destructor will try destroy the auto_ptr, which in its turn
> will try to destroy you pimpl via imcomplete pointer, therefor not
> calling destructor.

shared_ptr will call the destructor in this case.


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