Closed QUvalda closed 6 years ago
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://svn.boost.org/trac10/ticket/13348
Fixed cherry-picking commit:
https://github.com/boostorg/container/commit/ed6c8bd87d95eb8be54e133c901a50b5bcbbc288
Many thanks for the report.
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 }