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

@@ -38,7 +38,6 @@
#include <boost/move/detail/to_raw_pointer.hpp>
#include <boost/container/detail/version_type.hpp>
#include <boost/container/detail/type_traits.hpp>
#include <boost/container/detail/minimal_char_traits_header.hpp>
#include <boost/container/detail/algorithm.hpp>
#include <boost/intrusive/pointer_traits.hpp>
@@ -51,7 +50,7 @@
#include <boost/core/no_exceptions_support.hpp>
#include <boost/container_hash/hash.hpp>
#include <string> //char_traits
#include <boost/container/detail/minimal_char_traits_header.hpp> // for char_traits
#include <iosfwd>
#include <istream> //
#include <ostream>

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");
}