mirror of
https://github.com/boostorg/container.git
synced 2026-02-23 15:42:17 +00:00
Add expected sizeof test to detect any unwanted growth when refactoring
This commit is contained in:
@@ -379,6 +379,10 @@ void test_merge_from_different_comparison()
|
||||
set1.merge(set2);
|
||||
}
|
||||
|
||||
//Test the expected sizeof()
|
||||
BOOST_CONTAINER_STATIC_ASSERT_MSG(4*sizeof(void*) == sizeof(set<int>), "sizeof has an unexpected value");
|
||||
BOOST_CONTAINER_STATIC_ASSERT_MSG(4*sizeof(void*) == sizeof(multiset<int>), "sizeof has an unexpected value");
|
||||
|
||||
int main ()
|
||||
{
|
||||
using namespace boost::container::test;
|
||||
|
||||
Reference in New Issue
Block a user