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:
@@ -2394,6 +2394,10 @@ void test_with_lightweight_test()
|
||||
test_reserve_and_shrink();
|
||||
}
|
||||
|
||||
//Test the expected sizeof()
|
||||
BOOST_CONTAINER_STATIC_ASSERT_MSG(3*sizeof(void*) == sizeof(string), "sizeof has an unexpected value");
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
if(string_test<char>()){
|
||||
|
||||
Reference in New Issue
Block a user