mirror of
https://github.com/boostorg/container.git
synced 2026-02-23 03:32:14 +00:00
Add expected sizeof test to detect any unwanted growth when refactoring
This commit is contained in:
@@ -3888,6 +3888,9 @@ int test_cont_variants()
|
||||
return 0;
|
||||
}
|
||||
|
||||
//Test the expected sizeof()
|
||||
BOOST_CONTAINER_STATIC_ASSERT_MSG(5*sizeof(void*) == sizeof(devector<int>), "sizeof has an unexpected value");
|
||||
|
||||
int main()
|
||||
{
|
||||
// boost::container::devector<boost::container::test::movable_int>a(get());
|
||||
|
||||
Reference in New Issue
Block a user