No longer use BOOST_NO_CXX11_RVALUE_REFERENCES

Reason: We require decent C++11 support anyway.
This commit is contained in:
Gennaro Prota
2025-09-12 10:42:05 +02:00
parent 30ee0f68b5
commit efd4d41f60
4 changed files with 0 additions and 12 deletions

View File

@@ -609,7 +609,6 @@ public:
// -----------------------------------------------------------------------
void swap( dynamic_bitset & b ) noexcept;
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
//! Move constructor.
//!
//! Constructs a bitset that is the same as the bitset `src`,
@@ -634,7 +633,6 @@ public:
//! Nothing.
// -----------------------------------------------------------------------
dynamic_bitset & operator=( dynamic_bitset && src );
#endif // BOOST_NO_CXX11_RVALUE_REFERENCES
//! Returns a copy of the allocator object used to construct
//! `*this`.

View File

@@ -666,8 +666,6 @@ operator=( const dynamic_bitset< Block, AllocatorOrContainer > & b )
return *this;
}
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
template< typename Block, typename AllocatorOrContainer >
dynamic_bitset< Block, AllocatorOrContainer >::
dynamic_bitset( dynamic_bitset< Block, AllocatorOrContainer > && b )
@@ -695,8 +693,6 @@ operator=( dynamic_bitset< Block, AllocatorOrContainer > && b )
return *this;
}
#endif // BOOST_NO_CXX11_RVALUE_REFERENCES
template< typename Block, typename AllocatorOrContainer >
typename dynamic_bitset< Block, AllocatorOrContainer >::allocator_type
dynamic_bitset< Block, AllocatorOrContainer >::get_allocator() const

View File

@@ -356,8 +356,6 @@ struct bitset_test
BOOST_TEST( b.max_size() > 0 );
}
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
// move constructor (absent from std::bitset)
static void
move_constructor( const Bitset & b )
@@ -378,8 +376,6 @@ struct bitset_test
BOOST_TEST( b == rhs );
}
#endif // BOOST_NO_CXX11_RVALUE_REFERENCES
static void
swap( const Bitset & lhs, const Bitset & rhs )
{

View File

@@ -307,7 +307,6 @@ run_test_cases()
Tests::copy_assignment_operator( a, b );
}
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
//=====================================================================
// Test move constructor
{
@@ -346,7 +345,6 @@ run_test_cases()
bitset_type b( long_string ); // b greater than a
Tests::move_assignment_operator( a, b );
}
#endif // BOOST_NO_CXX11_RVALUE_REFERENCES
//=====================================================================
// Test swap
{