Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-11-11 15:43:07


From: "perkristensennettest" <per.kristensen_at_[hidden]>
> To me it seems like a bug, that the weak_count in
> counted_base::release is decremented before the call to dispose. See
> below
[...]
>
> If the call to dispose() indirectly calls weak_release there is an
> error as weak_release will decrement the --weak_count and may
> destruct the counted_base object. This will happen if you have an
> class C with a member of type weak_ptr<C>.

Do you have a test case that breaks?


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