forked from boostorg/unordered
Remove bad static_assert() from insert_tests
This commit is contained in:
@@ -45,7 +45,6 @@ namespace insert_tests {
|
|||||||
float b = x.max_load_factor();
|
float b = x.max_load_factor();
|
||||||
|
|
||||||
std::pair<iterator, bool> r1 = x.insert(*it);
|
std::pair<iterator, bool> r1 = x.insert(*it);
|
||||||
static_assert(std::is_same_v<decltype(*it), std::add_lvalue_reference_t<typename X::value_type>>);
|
|
||||||
std::pair<typename ordered::iterator, bool> r2 = tracker.insert(*it);
|
std::pair<typename ordered::iterator, bool> r2 = tracker.insert(*it);
|
||||||
|
|
||||||
BOOST_TEST(r1.second == r2.second);
|
BOOST_TEST(r1.second == r2.second);
|
||||||
@@ -220,7 +219,7 @@ namespace insert_tests {
|
|||||||
test::check_instances check_;
|
test::check_instances check_;
|
||||||
|
|
||||||
X x;
|
X x;
|
||||||
const_iterator pos = x.begin();
|
iterator pos = x.begin();
|
||||||
tracker_type tracker = test::create_ordered(x);
|
tracker_type tracker = test::create_ordered(x);
|
||||||
|
|
||||||
test::random_values<X> v(1000, generator);
|
test::random_values<X> v(1000, generator);
|
||||||
@@ -248,7 +247,7 @@ namespace insert_tests {
|
|||||||
test::check_instances check_;
|
test::check_instances check_;
|
||||||
|
|
||||||
X x;
|
X x;
|
||||||
const_iterator pos = x.begin();
|
iterator pos = x.begin();
|
||||||
tracker_type tracker = test::create_ordered(x);
|
tracker_type tracker = test::create_ordered(x);
|
||||||
|
|
||||||
test::random_values<X> v(1000, generator);
|
test::random_values<X> v(1000, generator);
|
||||||
|
Reference in New Issue
Block a user