mirror of
https://github.com/boostorg/container.git
synced 2026-02-27 17:02:15 +00:00
Add expected sizeof test to detect any unwanted growth when refactoring
This commit is contained in:
@@ -160,6 +160,9 @@ struct alloc_propagate_base<boost_container_list>
|
||||
|
||||
}}} //namespace boost::container::test
|
||||
|
||||
//Test the expected sizeof()
|
||||
BOOST_CONTAINER_STATIC_ASSERT_MSG(3*sizeof(void*) == sizeof(list<int>), "sizeof has an unexpected value");
|
||||
|
||||
int main ()
|
||||
{
|
||||
recursive_list_test();
|
||||
|
||||
Reference in New Issue
Block a user