Make erase follow preconditions

This commit is contained in:
Krystian Stasiowski
2020-02-15 17:44:52 -05:00
parent 7f2da5d479
commit 1ca7253c14
3 changed files with 16 additions and 31 deletions

View File

@ -1608,11 +1608,6 @@ testErase()
BOOST_TEST(s.erase(s.begin() + 1) == s.begin() + 1);
BOOST_TEST(s == "ac");
}
{
static_string<3> s{"abc"};
BOOST_TEST(s.erase(s.begin() + 3) == s.end());
BOOST_TEST(s == "abc");
}
// erase(const_iterator first, const_iterator last)
{