Remove BOOST_RV_REF

This commit is contained in:
Christian Mazakas
2023-09-27 11:44:44 -07:00
parent 3bd7e93ac6
commit 4cd1827104
9 changed files with 72 additions and 163 deletions
+1 -1
View File
@@ -701,7 +701,7 @@ namespace insert_tests {
pointer_constructible(int x_) : x(x_) {}
pointer_constructible(pointer_constructible const& p) : x(p.x) {}
pointer_constructible(pointer_constructible* const&) : x(-1) {}
pointer_constructible(BOOST_RV_REF(pointer_constructible*)) : x(-1) {}
pointer_constructible(pointer_constructible*&&) : x(-1) {}
};
struct pointer_constructible_hash
+6 -6
View File
@@ -62,7 +62,7 @@ namespace noexcept_tests {
typedef boost::hash<int> base;
public:
hash_nothrow(BOOST_RV_REF(hash_nothrow)) noexcept(nothrow_move_construct)
hash_nothrow(hash_nothrow&&) noexcept(nothrow_move_construct)
{
if (!nothrow_move_construct) {
test_throw("Move Constructor");
@@ -76,7 +76,7 @@ namespace noexcept_tests {
test_throw("Assign");
return *this;
}
hash_nothrow& operator=(BOOST_RV_REF(hash_nothrow))
hash_nothrow& operator=(hash_nothrow&&)
noexcept(nothrow_move_assign)
{
if (!nothrow_move_assign) {
@@ -110,7 +110,7 @@ namespace noexcept_tests {
typedef boost::hash<int> base;
public:
equal_to_nothrow(BOOST_RV_REF(equal_to_nothrow))
equal_to_nothrow(equal_to_nothrow&&)
noexcept(nothrow_move_construct)
{
if (!nothrow_move_construct) {
@@ -125,7 +125,7 @@ namespace noexcept_tests {
test_throw("Assign");
return *this;
}
equal_to_nothrow& operator=(BOOST_RV_REF(equal_to_nothrow))
equal_to_nothrow& operator=(equal_to_nothrow&&)
noexcept(nothrow_move_assign)
{
if (!nothrow_move_assign) {
@@ -367,7 +367,7 @@ template <class T> class allocator1
{
BOOST_COPYABLE_AND_MOVABLE(allocator1)
allocator1 operator=(BOOST_COPY_ASSIGN_REF(allocator1));
allocator1 operator=(BOOST_RV_REF(allocator1));
allocator1 operator=(allocator1&&);
public:
typedef T value_type;
@@ -403,7 +403,7 @@ public:
template <class U> allocator2(allocator2<U> const&) {}
allocator2& operator=(BOOST_RV_REF(allocator2)) { return *this; }
allocator2& operator=(allocator2&&) { return *this; }
T* allocate(std::size_t n)
{
+2 -2
View File
@@ -56,7 +56,7 @@ namespace unnecessary_copy_tests {
trace_op("Copy construct");
}
count_copies(BOOST_RV_REF(count_copies) x) : tag_(x.tag_), id_(++id_count)
count_copies(count_copies&& x) : tag_(x.tag_), id_(++id_count)
{
x.tag_ = -1;
++moves;
@@ -72,7 +72,7 @@ namespace unnecessary_copy_tests {
return *this;
}
count_copies& operator=(BOOST_RV_REF(count_copies) p) // Move assignment
count_copies& operator=(count_copies&& p) // Move assignment
{
tag_ = p.tag_;
++moves;