|
Boost : |
Subject: Re: [boost] [Container] Strange flat_set crash with std::inserter
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2013-09-08 14:19:18
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk