forked from boostorg/unordered
Update the unordered tests. Several changes including extra erase tests. The newer version of the containers have a hairy erase implementation, so need to test all the special cases. Also, a few extra tests here and there, avoid a couple of warnings and remove some old TODOs.
[SVN r3341]
This commit is contained in:
@@ -22,14 +22,6 @@ namespace test
|
||||
values_type values_;
|
||||
public:
|
||||
void store(X const& x) {
|
||||
// TODO: Well, I shouldn't be disabling exceptions here. Instead
|
||||
// the test runner should provide a method to the test which
|
||||
// disables exceptions and calls this.
|
||||
//
|
||||
// Actually, the test runner could also keep track of how many times
|
||||
// store is called in a run. Because it knows that in the next run
|
||||
// the first n-1 stores are unnecessary - since no exceptions will
|
||||
// be thrown for them.
|
||||
DISABLE_EXCEPTIONS;
|
||||
values_.clear();
|
||||
values_.reserve(x.size());
|
||||
|
||||
Reference in New Issue
Block a user