Update static assert test and remove unneeded <string> include.

This commit is contained in:
Ion Gaztañaga
2021-01-02 22:47:19 +01:00
parent 2bd1a6f906
commit 95538bfdc2
2 changed files with 5 additions and 6 deletions

View File

@@ -577,8 +577,8 @@ int main()
typedef boost::container::allocator_traits<allocator_type>::pointer pointer;
BOOST_STATIC_ASSERT_MSG
( (boost::has_trivial_destructor_after_move<cont>::value ==
boost::has_trivial_destructor_after_move<allocator_type>::value ||
boost::has_trivial_destructor_after_move<pointer>::value),
(boost::has_trivial_destructor_after_move<allocator_type>::value &&
boost::has_trivial_destructor_after_move<pointer>::value)),
"has_trivial_destructor_after_move(default allocator) test failed");
}
// std::allocator
@@ -588,8 +588,8 @@ int main()
typedef boost::container::allocator_traits<allocator_type>::pointer pointer;
BOOST_STATIC_ASSERT_MSG
( (boost::has_trivial_destructor_after_move<cont>::value ==
boost::has_trivial_destructor_after_move<allocator_type>::value ||
boost::has_trivial_destructor_after_move<pointer>::value),
(boost::has_trivial_destructor_after_move<allocator_type>::value &&
boost::has_trivial_destructor_after_move<pointer>::value)),
"has_trivial_destructor_after_move(std::allocator) test failed");
}