11 Nov
2002
11 Nov
'02
8:43 p.m.
From: "perkristensennettest"
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?