forked from boostorg/unordered
Replace boost::move with std::move
This commit is contained in:
@@ -119,12 +119,12 @@ static void failed_insertion_with_hint()
|
||||
|
||||
typename Set<int>::node_type nh = src.extract(10);
|
||||
|
||||
BOOST_TEST(dst.insert(dst.find(10), boost::move(nh)) == dst.find(10));
|
||||
BOOST_TEST(dst.insert(dst.find(10), std::move(nh)) == dst.find(10));
|
||||
BOOST_TEST(nh);
|
||||
BOOST_TEST(!nh.empty());
|
||||
BOOST_TEST(nh.value() == 10);
|
||||
|
||||
BOOST_TEST(dst.insert(dst.find(20), boost::move(nh)) == dst.find(10));
|
||||
BOOST_TEST(dst.insert(dst.find(20), std::move(nh)) == dst.find(10));
|
||||
BOOST_TEST(nh);
|
||||
BOOST_TEST(!nh.empty());
|
||||
BOOST_TEST(nh.value() == 10);
|
||||
@@ -144,14 +144,14 @@ static void failed_insertion_with_hint()
|
||||
dst.emplace(20, 2);
|
||||
|
||||
typename Map<int, int>::node_type nh = src.extract(10);
|
||||
BOOST_TEST(dst.insert(dst.find(10), boost::move(nh)) == dst.find(10));
|
||||
BOOST_TEST(dst.insert(dst.find(10), std::move(nh)) == dst.find(10));
|
||||
BOOST_TEST(nh);
|
||||
BOOST_TEST(!nh.empty());
|
||||
BOOST_TEST(nh.key() == 10);
|
||||
BOOST_TEST(nh.mapped() == 30);
|
||||
BOOST_TEST(dst[10] == 20);
|
||||
|
||||
BOOST_TEST(dst.insert(dst.find(20), boost::move(nh)) == dst.find(10));
|
||||
BOOST_TEST(dst.insert(dst.find(20), std::move(nh)) == dst.find(10));
|
||||
BOOST_TEST(nh);
|
||||
BOOST_TEST(!nh.empty());
|
||||
BOOST_TEST(nh.key() == 10);
|
||||
@@ -195,7 +195,7 @@ template <typename Container> void node_handle_tests_impl(Container& c)
|
||||
BOOST_TEST(!n2.empty());
|
||||
node_handle_compare(n2, value);
|
||||
|
||||
node_type n3 = boost::move(n2);
|
||||
node_type n3 = std::move(n2);
|
||||
BOOST_TEST(n3);
|
||||
BOOST_TEST(!n2);
|
||||
node_handle_compare(n3, value);
|
||||
@@ -203,16 +203,16 @@ template <typename Container> void node_handle_tests_impl(Container& c)
|
||||
// Maybe by swapping and observing that the allocator is
|
||||
// swapped rather than moved?
|
||||
|
||||
n1 = boost::move(n3);
|
||||
n1 = std::move(n3);
|
||||
BOOST_TEST(n1);
|
||||
BOOST_TEST(!n3);
|
||||
node_handle_compare(n1, value);
|
||||
|
||||
// Self move-assignment empties the node_handle.
|
||||
n1 = boost::move(n1);
|
||||
n1 = std::move(n1);
|
||||
BOOST_TEST(!n1);
|
||||
|
||||
n3 = boost::move(n3);
|
||||
n3 = std::move(n3);
|
||||
BOOST_TEST(!n3);
|
||||
|
||||
typename Container::value_type value1 = *c.begin();
|
||||
|
||||
Reference in New Issue
Block a user