Fix exception handling in rehash_impl

And improve tests so they will catch the error, and other similar errors.
This commit is contained in:
Daniel James
2017-05-04 19:30:18 +01:00
parent d49d0e90a8
commit 47a8c3fc67
10 changed files with 268 additions and 36 deletions

View File

@@ -43,6 +43,9 @@ template <class T> struct erase_by_key_test1 : public erase_test_base<T>
it != end; ++it) {
x.erase(test::get_key<T>(*it));
}
BOOST_TEST(x.empty());
test::check_equivalent_keys(x);
}
};