Subject: Re: [boost] possible bug introduced in boost function
From: Douglas Gregor (dgregor_at_[hidden])
Date: 2008-09-06 07:42:35
Emil Dotchevski wrote:
> I have strong suspicions that the changes in boost::function made
> today introduce a serious bug in the lifetime management of the
> contained object. I don't have a simple test case to demonstrate it,
> but a rather complicated use of boost::function which contains
> shared_ptr in a boost::bind results in incorrect refcount which leads
> to a crash.
Thanks for pointing this out! I'm surprised I'd never put such a test
into the Boost.Function test suite before. Anyway, the error has been
fixed and I've added such a test.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk