"David B. Held" <[EMAIL PROTECTED]> writes: > "David Abrahams" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> [...] >> C) Make sure the first base class of smart_ptr is the one that >> manages destruction of its resources:
<snip> > I was actually thinking in this direction somewhat. Then you're getting the hang of this EH stuff; congratulations! > I did notice that it really is the smart_ptr d'tor that really knows > how to properly clean stuff up, and it should probably be the one to > do so. But coordinating cleanup in the smart_ptr dtor was causing the problem you cited in the first place! In my version it's the ptr_manager base class that coordinates the cleanup by encapsulating ownership and storage. -Dave -- David Abrahams [EMAIL PROTECTED] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost