forked from boostorg/container
Enable user warnings in tests to be able to fix them.
This commit is contained in:
@ -7,7 +7,6 @@
|
|||||||
// See http://www.boost.org/libs/container for documentation.
|
// See http://www.boost.org/libs/container for documentation.
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <boost/container/allocator_traits.hpp>
|
#include <boost/container/allocator_traits.hpp>
|
||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
@ -444,4 +443,3 @@ int main()
|
|||||||
|
|
||||||
return ::boost::report_errors();
|
return ::boost::report_errors();
|
||||||
}
|
}
|
||||||
#include <boost/container/detail/config_end.hpp>
|
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
// See http://www.boost.org/libs/container for documentation.
|
// See http://www.boost.org/libs/container for documentation.
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@ -442,5 +440,3 @@ int main ()
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <boost/container/detail/config_end.hpp>
|
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <boost/container/list.hpp>
|
#include <boost/container/list.hpp>
|
||||||
#include <boost/container/adaptive_pool.hpp>
|
#include <boost/container/adaptive_pool.hpp>
|
||||||
|
|
||||||
@ -282,5 +281,3 @@ int main ()
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <boost/container/detail/config_end.hpp>
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
// See http://www.boost.org/libs/container for documentation.
|
// See http://www.boost.org/libs/container for documentation.
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <boost/container/map.hpp>
|
#include <boost/container/map.hpp>
|
||||||
#include <boost/container/adaptive_pool.hpp>
|
#include <boost/container/adaptive_pool.hpp>
|
||||||
|
|
||||||
@ -689,5 +688,3 @@ int main ()
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <boost/container/detail/config_end.hpp>
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
// See http://www.boost.org/libs/container for documentation.
|
// See http://www.boost.org/libs/container for documentation.
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <boost/container/detail/pair.hpp>
|
#include <boost/container/detail/pair.hpp>
|
||||||
#include "movable_int.hpp"
|
#include "movable_int.hpp"
|
||||||
#include "emplace_test.hpp"
|
#include "emplace_test.hpp"
|
||||||
@ -152,5 +151,3 @@ int main ()
|
|||||||
#endif //#!defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_HDR_TUPLE)
|
#endif //#!defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_HDR_TUPLE)
|
||||||
return ::boost::report_errors();
|
return ::boost::report_errors();
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <boost/container/detail/config_end.hpp>
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
// See http://www.boost.org/libs/container for documentation.
|
// See http://www.boost.org/libs/container for documentation.
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <boost/container/scoped_allocator_fwd.hpp>
|
#include <boost/container/scoped_allocator_fwd.hpp>
|
||||||
|
|
||||||
// container/detail
|
// container/detail
|
||||||
@ -1374,4 +1373,3 @@ int main()
|
|||||||
|
|
||||||
return ::boost::report_errors();
|
return ::boost::report_errors();
|
||||||
}
|
}
|
||||||
#include <boost/container/detail/config_end.hpp>
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
// See http://www.boost.org/libs/container for documentation.
|
// See http://www.boost.org/libs/container for documentation.
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <boost/move/utility_core.hpp>
|
#include <boost/move/utility_core.hpp>
|
||||||
@ -464,5 +463,3 @@ int main()
|
|||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <boost/container/detail/config_end.hpp>
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
// See http://www.boost.org/libs/container for documentation.
|
// See http://www.boost.org/libs/container for documentation.
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <boost/container/set.hpp>
|
#include <boost/container/set.hpp>
|
||||||
#include <boost/container/adaptive_pool.hpp>
|
#include <boost/container/adaptive_pool.hpp>
|
||||||
@ -651,5 +650,3 @@ int main ()
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <boost/container/detail/config_end.hpp>
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
// See http://www.boost.org/libs/container for documentation.
|
// See http://www.boost.org/libs/container for documentation.
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <boost/container/slist.hpp>
|
#include <boost/container/slist.hpp>
|
||||||
#include <boost/container/node_allocator.hpp>
|
#include <boost/container/node_allocator.hpp>
|
||||||
|
|
||||||
@ -285,6 +284,3 @@ int main ()
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <boost/container/detail/config_end.hpp>
|
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
#define STABLE_VECTOR_ENABLE_INVARIANT_CHECKING
|
#define STABLE_VECTOR_ENABLE_INVARIANT_CHECKING
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <boost/container/stable_vector.hpp>
|
#include <boost/container/stable_vector.hpp>
|
||||||
@ -223,5 +222,3 @@ int main()
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <boost/container/detail/config_end.hpp>
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
// Use, modification and distribution is subject to the Boost Software License,
|
// Use, modification and distribution is subject to the Boost Software License,
|
||||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
#include <boost/core/no_exceptions_support.hpp>
|
#include <boost/core/no_exceptions_support.hpp>
|
||||||
#include <boost/container/vector.hpp>
|
#include <boost/container/vector.hpp>
|
||||||
@ -824,4 +823,3 @@ int main(int, char* [])
|
|||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <boost/container/detail/config_end.hpp>
|
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <boost/container/vector.hpp>
|
#include <boost/container/vector.hpp>
|
||||||
#include <boost/container/string.hpp>
|
#include <boost/container/string.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -592,5 +591,3 @@ int main()
|
|||||||
|
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <boost/container/detail/config_end.hpp>
|
|
||||||
|
@ -7,9 +7,7 @@
|
|||||||
// See http://www.boost.org/libs/container for documentation.
|
// See http://www.boost.org/libs/container for documentation.
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
#include <boost/container/detail/config_begin.hpp>
|
|
||||||
#include <boost/container/uses_allocator_fwd.hpp>
|
#include <boost/container/uses_allocator_fwd.hpp>
|
||||||
|
|
||||||
#include <boost/container/uses_allocator.hpp>
|
#include <boost/container/uses_allocator.hpp>
|
||||||
#include "propagation_test_allocator.hpp"
|
#include "propagation_test_allocator.hpp"
|
||||||
|
|
||||||
|
@ -340,24 +340,24 @@ int main()
|
|||||||
typedef boost::container::vector<int> cont;
|
typedef boost::container::vector<int> cont;
|
||||||
typedef cont::allocator_type allocator_type;
|
typedef cont::allocator_type allocator_type;
|
||||||
typedef boost::container::allocator_traits<allocator_type>::pointer pointer;
|
typedef boost::container::allocator_traits<allocator_type>::pointer pointer;
|
||||||
if (boost::has_trivial_destructor_after_move<cont>::value !=
|
BOOST_STATIC_ASSERT_MSG
|
||||||
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) {
|
(boost::has_trivial_destructor_after_move<cont>::value ==
|
||||||
std::cerr << "has_trivial_destructor_after_move(default allocator) test failed" << std::endl;
|
boost::has_trivial_destructor_after_move<allocator_type>::value)
|
||||||
return 1;
|
, "has_trivial_destructor_after_move(default allocator) test failed"
|
||||||
}
|
);
|
||||||
}
|
}
|
||||||
// std::allocator
|
// std::allocator
|
||||||
{
|
{
|
||||||
typedef boost::container::vector<int, std::allocator<int> > cont;
|
typedef boost::container::vector<int, std::allocator<int> > cont;
|
||||||
typedef cont::allocator_type allocator_type;
|
typedef cont::allocator_type allocator_type;
|
||||||
typedef boost::container::allocator_traits<allocator_type>::pointer pointer;
|
typedef boost::container::allocator_traits<allocator_type>::pointer pointer;
|
||||||
if (boost::has_trivial_destructor_after_move<cont>::value !=
|
BOOST_STATIC_ASSERT_MSG
|
||||||
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) {
|
(boost::has_trivial_destructor_after_move<cont>::value ==
|
||||||
std::cerr << "has_trivial_destructor_after_move(std::allocator) test failed" << std::endl;
|
boost::has_trivial_destructor_after_move<allocator_type>::value)
|
||||||
return 1;
|
, "has_trivial_destructor_after_move(std::allocator) test failed"
|
||||||
}
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user