Subject: [Boost-bugs] [Boost C++ Libraries] #13348: splice does not work as expected
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-12-18 15:04:58
#13348: splice does not work as expected
------------------------------+---------------------------
Reporter: gkorolev@⦠| Owner: Ion Gaztañaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: container
Version: Boost 1.65.0 | Severity: Problem
Keywords: slist container |
------------------------------+---------------------------
The call of the splice method with iterators leads to an infinite loop
inside common_slist_algorithms::get_previous_node
{{{
slist lst1 = { 0, 1, 2, 3 };
slist lst2;
lst2.splice(lst2.begin(), lst1, lst1.begin());
expected:
lst1 == { 1, 2, 3 }
lst2 == { 0 }
}}}
xref https://github.com/boostorg/container/pull/64
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13348> 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-12-18 15:12:21 UTC