Exercise subtraction between iterators in the unit tests

Reason: This was missing. And we forgot a friend declaration for the
corresponding operator-(), which will be added with the next commit.
This commit is contained in:
Gennaro Prota
2025-12-22 11:53:06 +01:00
parent 7c4dbfa2ac
commit 54c841d585

View File

@@ -248,6 +248,8 @@ struct bitset_test
BOOST_TEST( *( 1 + b.begin() ) == b[ 1 ] );
BOOST_TEST( *( b.end() - 1 ) == b[ b.size() - 1 ] );
}
BOOST_TEST( b.end() - b.begin() == static_cast< std::ptrdiff_t >( b.size() ) );
}
static void