
El 06/09/2013 14:35, Ben Pope escribió:
Hi all
It seems that when I copy a sorted but non-unique range of randomly generated numbers to an output iterator generated from std::inserter to a boost::flat_set it crashes.
At first I assumed it was because boost::flat_set doesn't have stable iterators, but it seems that the implementation of std::insert_iterator does the right thing by reassigning its internal iterator to the result of the insert operation before incrementing it.
Apologies for not being able to reduce the problem further, but this one is a little strange, the following code demonstrates the problem (and some variations that do work) in boost 1.54:
Thanks for the report and the test case. I think tt's a bug in the insertion with hint function in flat_tree. I'll open a ticket for this. Best, Ion