Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9092: Unique insertion with hint bug when inserting ordered non-unique sequence
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-12-07 10:46:36
#9092: Unique insertion with hint bug when inserting ordered non-unique sequence
---------------------------+-------------------------------------------
Reporter: igaztanaga | Owner: igaztanaga
Type: Bugs | Status: closed
Milestone: Boost 1.55.0 | Component: container
Version: Boost 1.54.0 | Severity: Problem
Resolution: fixed | Keywords: flat_tree insertion with hint
---------------------------+-------------------------------------------
Comment (by anonymous):
Hello!
I got same problem in boost 1.48 and managed to write unit-test with fixed
input sequence. Thought it would be good to put and adapt this unit-test
in boost.
Code:
{{{
TEST(BoostFlatSet,
ShouldNotCrash_WithCopyAndInsert_OfOrderedNonUniqueSequence)
{
std::vector<size_t> test_numbers =
boost::assign::list_of(4)(6)(8)(11)(13)(18)(18)(24)(26)(28)(31)(33)(38);
boost::container::flat_set<size_t> output;
EXPECT_NO_FATAL_FAILURE(boost::copy(test_numbers,
std::inserter(output, output.end())));
}
}}}
Thanks!
Roman Vlasov
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9092#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC