Remove uses of BOOST_NO_CXX11_RVALUE_REFERENCES

This commit is contained in:
Peter Dimov
2024-09-24 22:51:38 +03:00
parent cd0b99380e
commit ce308f21e8
24 changed files with 3 additions and 440 deletions

View File

@@ -82,9 +82,6 @@ public:
}
// generated copy constructor, destructor are fine...
#if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
// ... except in C++0x, move disables the implicit copy
shared_array( shared_array const & r ) BOOST_SP_NOEXCEPT : px( r.px ), pn( r.pn )
@@ -97,8 +94,6 @@ public:
r.px = 0;
}
#endif
// conversion
template<class Y>
@@ -130,8 +125,6 @@ public:
return *this;
}
#if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
shared_array & operator=( shared_array && r ) BOOST_SP_NOEXCEPT
{
this_type( static_cast< shared_array && >( r ) ).swap( *this );
@@ -145,8 +138,6 @@ public:
return *this;
}
#endif
void reset() BOOST_SP_NOEXCEPT
{
this_type().swap( *this );