
21 Oct
2010
21 Oct
'10
1:59 p.m.
On 21 October 2010 00:46, Daniel James
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