Boost logo

Boost Users :

Subject: Re: [Boost-users] Passing a boost::unordered_set as the result map to boost::split
From: Daniel James (dnljms_at_[hidden])
Date: 2010-10-21 09:59:24


On 21 October 2010 00:46, Daniel James <dnljms_at_[hidden]> wrote:
>
> It seems that the dereferenced iterator value is destroyed before
> hash_function is called. I was under the impression that it was safe
> to use that reference until the next time the iterator is used. If
> that's right, then it's a bug in split, if that's wrong then it's a
> bug in unordered_set. The attached patch is a workaround/fix.

I've looked into this a little more, and it is a bug in
boost::unordered_set. I'll check a fix into trunk this evening (I need
to write some tests first). Hopefully, it will be in time for 1.45.

Daniel


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net