mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Actually test the move constructor in the move constructor tests
We were testing the *copy* constructor, instead.
This commit is contained in:
@@ -358,8 +358,9 @@ struct bitset_test
|
||||
static void
|
||||
move_constructor( const Bitset & b )
|
||||
{
|
||||
Bitset copy( boost::move( b ) );
|
||||
BOOST_TEST( b == copy );
|
||||
Bitset copy( b );
|
||||
Bitset b2( boost::move( copy ) );
|
||||
BOOST_TEST( b2 == b );
|
||||
}
|
||||
|
||||
// move assignment operator (absent from std::bitset)
|
||||
|
||||
Reference in New Issue
Block a user