fix wxList::erase(it, end()) in non-STL build (see #10103)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-02-07 23:10:56 +00:00
parent 5bca8be2cf
commit 1416fc5ff6
2 changed files with 8 additions and 1 deletions

View File

@@ -156,6 +156,11 @@ void ListsTestCase::wxStdListTest()
list1.insert(list1.end(), (int *)2);
CPPUNIT_ASSERT_EQUAL( (int *)1, list1.front() );
CPPUNIT_ASSERT_EQUAL( (int *)2, list1.back() );
it = list1.begin();
it = list1.erase(++it, list1.end());
CPPUNIT_ASSERT_EQUAL( 1, list1.size() );
CPPUNIT_ASSERT( it == list1.end() );
}
void ListsTestCase::wxListCtorTest()