forked from boostorg/intrusive
Fixed stateful value traits and iterator_to.
This commit is contained in:
@@ -234,6 +234,13 @@ void test_list<ValueTraits>
|
||||
i = list_type::s_iterator_to (values[4]);
|
||||
BOOST_TEST (&*i == &values[4]);
|
||||
|
||||
typename list_type::const_iterator ic;
|
||||
ic = testlist.iterator_to (const_cast<const value_type &>(values[4]));
|
||||
BOOST_TEST (&*ic == &values[4]);
|
||||
|
||||
ic = list_type::s_iterator_to (const_cast<const value_type &>(values[4]));
|
||||
BOOST_TEST (&*ic == &values[4]);
|
||||
|
||||
i = testlist.erase (i);
|
||||
BOOST_TEST (i == testlist.end());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user