mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 22:14:26 +02:00
Update static assert test and remove unneeded <string> include.
This commit is contained in:
@@ -38,7 +38,6 @@
|
|||||||
#include <boost/move/detail/to_raw_pointer.hpp>
|
#include <boost/move/detail/to_raw_pointer.hpp>
|
||||||
#include <boost/container/detail/version_type.hpp>
|
#include <boost/container/detail/version_type.hpp>
|
||||||
#include <boost/container/detail/type_traits.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/container/detail/algorithm.hpp>
|
||||||
|
|
||||||
#include <boost/intrusive/pointer_traits.hpp>
|
#include <boost/intrusive/pointer_traits.hpp>
|
||||||
@@ -51,7 +50,7 @@
|
|||||||
#include <boost/core/no_exceptions_support.hpp>
|
#include <boost/core/no_exceptions_support.hpp>
|
||||||
#include <boost/container_hash/hash.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 <iosfwd>
|
||||||
#include <istream> //
|
#include <istream> //
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
@@ -577,8 +577,8 @@ int main()
|
|||||||
typedef boost::container::allocator_traits<allocator_type>::pointer pointer;
|
typedef boost::container::allocator_traits<allocator_type>::pointer pointer;
|
||||||
BOOST_STATIC_ASSERT_MSG
|
BOOST_STATIC_ASSERT_MSG
|
||||||
( (boost::has_trivial_destructor_after_move<cont>::value ==
|
( (boost::has_trivial_destructor_after_move<cont>::value ==
|
||||||
boost::has_trivial_destructor_after_move<allocator_type>::value ||
|
(boost::has_trivial_destructor_after_move<allocator_type>::value &&
|
||||||
boost::has_trivial_destructor_after_move<pointer>::value),
|
boost::has_trivial_destructor_after_move<pointer>::value)),
|
||||||
"has_trivial_destructor_after_move(default allocator) test failed");
|
"has_trivial_destructor_after_move(default allocator) test failed");
|
||||||
}
|
}
|
||||||
// std::allocator
|
// std::allocator
|
||||||
@@ -588,8 +588,8 @@ int main()
|
|||||||
typedef boost::container::allocator_traits<allocator_type>::pointer pointer;
|
typedef boost::container::allocator_traits<allocator_type>::pointer pointer;
|
||||||
BOOST_STATIC_ASSERT_MSG
|
BOOST_STATIC_ASSERT_MSG
|
||||||
( (boost::has_trivial_destructor_after_move<cont>::value ==
|
( (boost::has_trivial_destructor_after_move<cont>::value ==
|
||||||
boost::has_trivial_destructor_after_move<allocator_type>::value ||
|
(boost::has_trivial_destructor_after_move<allocator_type>::value &&
|
||||||
boost::has_trivial_destructor_after_move<pointer>::value),
|
boost::has_trivial_destructor_after_move<pointer>::value)),
|
||||||
"has_trivial_destructor_after_move(std::allocator) test failed");
|
"has_trivial_destructor_after_move(std::allocator) test failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user