mirror of
https://github.com/boostorg/unordered.git
synced 2025-10-06 12:40:58 +02:00
Fix iterator insert bug in unordered_set/unordered_map.
[SVN r66136]
This commit is contained in:
@@ -148,6 +148,19 @@ struct input_range_construct_test : public range<T>, objects
|
||||
}
|
||||
};
|
||||
|
||||
template <class T>
|
||||
struct copy_range_construct_test : public range<T>, objects
|
||||
{
|
||||
copy_range_construct_test() : range<T>(60) {}
|
||||
|
||||
void run() const {
|
||||
T x(test::copy_iterator(this->values.begin()),
|
||||
test::copy_iterator(this->values.end()),
|
||||
0, hash, equal_to, allocator);
|
||||
avoid_unused_warning(x);
|
||||
}
|
||||
};
|
||||
|
||||
RUN_EXCEPTION_TESTS(
|
||||
(construct_test1)
|
||||
(construct_test2)
|
||||
@@ -160,5 +173,6 @@ RUN_EXCEPTION_TESTS(
|
||||
(range_construct_test3)
|
||||
(range_construct_test4)
|
||||
(range_construct_test5)
|
||||
(input_range_construct_test),
|
||||
(input_range_construct_test)
|
||||
(copy_range_construct_test),
|
||||
CONTAINER_SEQ)
|
||||
|
Reference in New Issue
Block a user