Subject: Re: [boost] [intrusive] Possible bug in bstree_algorithms.hpp
From: Lars HagstrÃ¶m (lars_at_[hidden])
Date: 2014-09-25 03:22:00
Just to let any followers of this thread know of the off-list developments:
This fix appears to work for me. And the bug has been present since 1.53.
On Tue, Sep 23, 2014 at 2:42 PM, Ion GaztaÃ±aga <igaztanaga_at_[hidden]> wrote:
> El 22/09/2014 22:01, Lars HagstrÃ¶m escribiÃ³:
>> Ok, I'll set up the VM we talked about in the next few days, and hopefully
>> that can give you something more to go on.
> Lars, I think I've found the problem. In boost/container/detail/
> if(!m_p) return;
> value_type *raw_ptr = container_detail::to_raw_pointer(m_p);
> AllocTraits::destroy(m_a, raw_ptr); <<<<< HERE!!!
> A pointer increment is missing, it should be:
> AllocTraits::destroy(m_a, raw_ptr++); <<<<< NOTE "raw_ptr++"
> Unsubscribe & other changes: http://lists.boost.org/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk