
6 Sep
2008
6 Sep
'08
11:42 a.m.
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. - Doug