Fixed stateful value traits and iterator_to.

This commit is contained in:
Ion Gaztañaga
2014-02-14 23:16:48 +01:00
parent 36a5b82a33
commit 22973145aa
8 changed files with 46 additions and 19 deletions
+7
View File
@@ -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());