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