forked from boostorg/unordered
Remove the optimization for std::pair with a key reference. It'll be too much hassle to get a very unusual use case to work on all compilers.
[SVN r56461]
This commit is contained in:
1 parent
31cd8f4e16
commit
2b8680d2c4
2 files changed
+3
-16
No files matched your search
@@ -29,12 +29,13 @@ UNORDERED_AUTO_TEST(needless_copies_2) {
|
||||
|
||||
test::object_count count = test::global_object_count;
|
||||
dst.emplace(src);
|
||||
BOOST_TEST(test::global_object_count.instances == count.instances + 1);
|
||||
BOOST_TEST_EQ(test::global_object_count.instances, count.instances + 1);
|
||||
BOOST_TEST_EQ(test::global_object_count.constructions, count.constructions + 1);
|
||||
|
||||
count = test::global_object_count;
|
||||
dst.emplace(src);
|
||||
BOOST_TEST_EQ(test::global_object_count, count);
|
||||
BOOST_TEST_EQ(test::global_object_count.instances, count.instances);
|
||||
BOOST_TEST(test::global_object_count.constructions <= count.constructions + 1);
|
||||
}
|
||||
|
||||
RUN_TESTS()
|
||||
Reference in new issue
Block a user