Remove BOOST_COPY_ASSIGN_REF

This commit is contained in:
Christian Mazakas 2023-08-31 09:28:49 -07:00
parent 15d04295d6
commit 8d59040ece
3 changed files with 6 additions and 6 deletions

View File

@ -114,7 +114,7 @@ namespace test {
x.tag2_ = -1;
}
movable& operator=(BOOST_COPY_ASSIGN_REF(movable) x) // Copy assignment
movable& operator=(movable const& x) // Copy assignment
{
BOOST_TEST(x.tag1_ != -1);
tag1_ = x.tag1_;

View File

@ -71,7 +71,7 @@ namespace noexcept_tests {
hash_nothrow() { test_throw("Constructor"); }
hash_nothrow(hash_nothrow const&) { test_throw("Copy"); }
hash_nothrow& operator=(BOOST_COPY_ASSIGN_REF(hash_nothrow))
hash_nothrow& operator=(hash_nothrow const&)
{
test_throw("Assign");
return *this;
@ -120,7 +120,7 @@ namespace noexcept_tests {
equal_to_nothrow() { test_throw("Constructor"); }
equal_to_nothrow(equal_to_nothrow const&) { test_throw("Copy"); }
equal_to_nothrow& operator=(BOOST_COPY_ASSIGN_REF(equal_to_nothrow))
equal_to_nothrow& operator=(equal_to_nothrow const&)
{
test_throw("Assign");
return *this;
@ -366,7 +366,7 @@ namespace noexcept_tests {
template <class T> class allocator1
{
BOOST_COPYABLE_AND_MOVABLE(allocator1)
allocator1 operator=(BOOST_COPY_ASSIGN_REF(allocator1));
allocator1 operator=(allocator1 const&);
allocator1 operator=(allocator1&&);
public:
@ -392,7 +392,7 @@ public:
template <class T> class allocator2
{
BOOST_COPYABLE_AND_MOVABLE(allocator2)
allocator2 operator=(BOOST_COPY_ASSIGN_REF(allocator2));
allocator2 operator=(allocator2 const&);
public:
typedef T value_type;

View File

@ -64,7 +64,7 @@ namespace unnecessary_copy_tests {
}
count_copies& operator=(
BOOST_COPY_ASSIGN_REF(count_copies) p) // Copy assignment
count_copies const& p) // Copy assignment
{
tag_ = p.tag_;
++copies;