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:
@@ -104,6 +104,9 @@ struct alloc_propagate_base<boost_container_stable_vector>
|
||||
}}} //namespace boost::container::test
|
||||
|
||||
|
||||
//Test the expected sizeof()
|
||||
BOOST_CONTAINER_STATIC_ASSERT_MSG(5*sizeof(void*) == sizeof(stable_vector<int>), "sizeof has an unexpected value");
|
||||
|
||||
int main()
|
||||
{
|
||||
recursive_vector_test();
|
||||
|
||||
Reference in New Issue
Block a user