Actually test the move constructor in the move constructor tests

We were testing the *copy* constructor, instead.
This commit is contained in:
Gennaro Prota
2025-09-11 10:49:22 +02:00
parent 3ccf097dc1
commit ae9703b119

View File

@@ -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)