Replace "boost/move/utility.hpp" with "boost/move/utility_core.hpp" to minimize dependencies.

This commit is contained in:
Ion Gaztañaga
2014-09-17 23:36:23 +02:00
parent 5313086d54
commit 3025cc41b6
38 changed files with 44 additions and 47 deletions

View File

@ -11,7 +11,7 @@
#include <boost/container/detail/workaround.hpp> #include <boost/container/detail/workaround.hpp>
//[doc_move_containers //[doc_move_containers
#include <boost/container/vector.hpp> #include <boost/container/vector.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <cassert> #include <cassert>
//Non-copyable class //Non-copyable class

View File

@ -29,7 +29,7 @@
#include <boost/container/detail/memory_util.hpp> #include <boost/container/detail/memory_util.hpp>
#include <boost/type_traits/integral_constant.hpp> #include <boost/type_traits/integral_constant.hpp>
#include <boost/container/detail/mpl.hpp> #include <boost/container/detail/mpl.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <limits> //numeric_limits<>::max() #include <limits> //numeric_limits<>::max()
#include <new> //placement new #include <new> //placement new
#include <memory> //std::allocator #include <memory> //std::allocator

View File

@ -36,7 +36,7 @@
#include <boost/type_traits/has_trivial_assign.hpp> #include <boost/type_traits/has_trivial_assign.hpp>
#include <boost/type_traits/has_nothrow_copy.hpp> #include <boost/type_traits/has_nothrow_copy.hpp>
#include <boost/type_traits/has_nothrow_assign.hpp> #include <boost/type_traits/has_nothrow_assign.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/iterator.hpp> #include <boost/move/iterator.hpp>
#include <boost/move/detail/move_helpers.hpp> #include <boost/move/detail/move_helpers.hpp>
#include <boost/move/traits.hpp> #include <boost/move/traits.hpp>

View File

@ -21,7 +21,7 @@
#include <boost/container/allocator_traits.hpp> #include <boost/container/allocator_traits.hpp>
#include <boost/container/detail/destroyers.hpp> #include <boost/container/detail/destroyers.hpp>
#include <boost/aligned_storage.hpp> #include <boost/aligned_storage.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/container/detail/mpl.hpp> #include <boost/container/detail/mpl.hpp>
#include <boost/container/detail/type_traits.hpp> #include <boost/container/detail/type_traits.hpp>
#include <iterator> //std::iterator_traits #include <iterator> //std::iterator_traits
@ -196,7 +196,7 @@ insert_copy_proxy<A, It> get_insert_value_proxy(const typename std::iterator_tra
#ifdef BOOST_CONTAINER_PERFECT_FORWARDING #ifdef BOOST_CONTAINER_PERFECT_FORWARDING
#include <boost/container/detail/variadic_templates_tools.hpp> #include <boost/container/detail/variadic_templates_tools.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <typeinfo> #include <typeinfo>
//#include <iostream> //For debugging purposes //#include <iostream> //For debugging purposes

View File

@ -25,7 +25,7 @@
#include <utility> #include <utility>
#include <boost/type_traits/has_trivial_destructor.hpp> #include <boost/type_traits/has_trivial_destructor.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/container/detail/utilities.hpp> #include <boost/container/detail/utilities.hpp>
#include <boost/container/detail/pair.hpp> #include <boost/container/detail/pair.hpp>

View File

@ -20,7 +20,7 @@
#include <boost/container/detail/config_begin.hpp> #include <boost/container/detail/config_begin.hpp>
#include <boost/container/detail/workaround.hpp> #include <boost/container/detail/workaround.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/container/allocator_traits.hpp> #include <boost/container/allocator_traits.hpp>
#include <boost/container/detail/type_traits.hpp> #include <boost/container/detail/type_traits.hpp>
#include <boost/static_assert.hpp> #include <boost/static_assert.hpp>

View File

@ -21,7 +21,7 @@
#include <boost/intrusive/slist.hpp> #include <boost/intrusive/slist.hpp>
#include <boost/intrusive/pointer_traits.hpp> #include <boost/intrusive/pointer_traits.hpp>
#include <boost/type_traits/make_unsigned.hpp> #include <boost/type_traits/make_unsigned.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
namespace boost { namespace boost {
namespace container { namespace container {

View File

@ -21,7 +21,7 @@
#include <utility> #include <utility>
#include <functional> #include <functional>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/intrusive/options.hpp> #include <boost/intrusive/options.hpp>
#include <boost/container/detail/version_type.hpp> #include <boost/container/detail/version_type.hpp>

View File

@ -28,7 +28,7 @@
#include <utility> //std::pair #include <utility> //std::pair
#include <algorithm> //std::swap #include <algorithm> //std::swap
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#ifndef BOOST_CONTAINER_PERFECT_FORWARDING #ifndef BOOST_CONTAINER_PERFECT_FORWARDING

View File

@ -17,7 +17,7 @@
#include <boost/container/detail/config_begin.hpp> #include <boost/container/detail/config_begin.hpp>
#include <boost/container/detail/workaround.hpp> #include <boost/container/detail/workaround.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#ifdef BOOST_CONTAINER_PERFECT_FORWARDING #ifdef BOOST_CONTAINER_PERFECT_FORWARDING
//#error "This file is not needed when perfect forwarding is available" //#error "This file is not needed when perfect forwarding is available"
@ -39,7 +39,7 @@
#include <boost/preprocessor/arithmetic/sub.hpp> #include <boost/preprocessor/arithmetic/sub.hpp>
#include <boost/preprocessor/arithmetic/add.hpp> #include <boost/preprocessor/arithmetic/add.hpp>
#include <boost/preprocessor/iteration/iterate.hpp> #include <boost/preprocessor/iteration/iterate.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#define BOOST_CONTAINER_MAX_CONSTRUCTOR_PARAMETERS 10 #define BOOST_CONTAINER_MAX_CONSTRUCTOR_PARAMETERS 10

View File

@ -32,7 +32,7 @@
#include <boost/intrusive/splaytree.hpp> #include <boost/intrusive/splaytree.hpp>
#include <boost/intrusive/sgtree.hpp> #include <boost/intrusive/sgtree.hpp>
// //
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/type_traits/has_trivial_destructor.hpp> #include <boost/type_traits/has_trivial_destructor.hpp>
#include <boost/core/no_exceptions_support.hpp> #include <boost/core/no_exceptions_support.hpp>
// //

View File

@ -22,7 +22,7 @@
#include <boost/container/detail/config_begin.hpp> #include <boost/container/detail/config_begin.hpp>
#include <boost/container/detail/workaround.hpp> #include <boost/container/detail/workaround.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
namespace boost { namespace boost {
namespace container { namespace container {

View File

@ -27,7 +27,7 @@
#include <boost/type_traits/has_trivial_assign.hpp> #include <boost/type_traits/has_trivial_assign.hpp>
#include <boost/type_traits/is_pod.hpp> #include <boost/type_traits/is_pod.hpp>
#include <boost/move/core.hpp> #include <boost/move/core.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/iterator.hpp> #include <boost/move/iterator.hpp>
#include <boost/assert.hpp> #include <boost/assert.hpp>
#include <boost/container/throw_exception.hpp> #include <boost/container/throw_exception.hpp>

View File

@ -27,7 +27,7 @@
#include <boost/container/detail/mpl.hpp> #include <boost/container/detail/mpl.hpp>
#include <boost/container/allocator_traits.hpp> #include <boost/container/allocator_traits.hpp>
#include <boost/container/throw_exception.hpp> #include <boost/container/throw_exception.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/detail/move_helpers.hpp> #include <boost/move/detail/move_helpers.hpp>
#include <boost/move/traits.hpp> #include <boost/move/traits.hpp>
#include <boost/core/no_exceptions_support.hpp> #include <boost/core/no_exceptions_support.hpp>

View File

@ -25,7 +25,7 @@
#include <boost/container/detail/flat_tree.hpp> #include <boost/container/detail/flat_tree.hpp>
#include <boost/container/detail/mpl.hpp> #include <boost/container/detail/mpl.hpp>
#include <boost/container/allocator_traits.hpp> #include <boost/container/allocator_traits.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/detail/move_helpers.hpp> #include <boost/move/detail/move_helpers.hpp>
#include <boost/move/traits.hpp> #include <boost/move/traits.hpp>

View File

@ -21,7 +21,7 @@
#include <boost/container/detail/iterators.hpp> #include <boost/container/detail/iterators.hpp>
#include <boost/container/detail/mpl.hpp> #include <boost/container/detail/mpl.hpp>
#include <boost/container/throw_exception.hpp> #include <boost/container/throw_exception.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/iterator.hpp> #include <boost/move/iterator.hpp>
#include <boost/move/detail/move_helpers.hpp> #include <boost/move/detail/move_helpers.hpp>
#include <boost/move/traits.hpp> #include <boost/move/traits.hpp>

View File

@ -30,7 +30,7 @@
#include <boost/container/detail/pair.hpp> #include <boost/container/detail/pair.hpp>
#include <boost/container/detail/type_traits.hpp> #include <boost/container/detail/type_traits.hpp>
#include <boost/container/throw_exception.hpp> #include <boost/container/throw_exception.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/detail/move_helpers.hpp> #include <boost/move/detail/move_helpers.hpp>
#include <boost/move/traits.hpp> #include <boost/move/traits.hpp>
#include <boost/static_assert.hpp> #include <boost/static_assert.hpp>

View File

@ -30,7 +30,7 @@
#include <boost/container/detail/utilities.hpp> #include <boost/container/detail/utilities.hpp>
#include <utility> #include <utility>
#include <boost/container/detail/pair.hpp> #include <boost/container/detail/pair.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/core/no_exceptions_support.hpp> #include <boost/core/no_exceptions_support.hpp>
namespace boost { namespace container { namespace boost { namespace container {

View File

@ -23,12 +23,12 @@
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/detail/move_helpers.hpp> #include <boost/move/detail/move_helpers.hpp>
#include <boost/move/traits.hpp> #include <boost/move/traits.hpp>
#include <boost/container/detail/mpl.hpp> #include <boost/container/detail/mpl.hpp>
#include <boost/container/detail/tree.hpp> #include <boost/container/detail/tree.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#ifndef BOOST_CONTAINER_PERFECT_FORWARDING #ifndef BOOST_CONTAINER_PERFECT_FORWARDING
#include <boost/container/detail/preprocessor.hpp> #include <boost/container/detail/preprocessor.hpp>
#endif #endif

View File

@ -20,7 +20,7 @@
#include <boost/container/container_fwd.hpp> #include <boost/container/container_fwd.hpp>
#include <boost/container/throw_exception.hpp> #include <boost/container/throw_exception.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/detail/move_helpers.hpp> #include <boost/move/detail/move_helpers.hpp>
#include <boost/move/traits.hpp> #include <boost/move/traits.hpp>
#include <boost/intrusive/pointer_traits.hpp> #include <boost/intrusive/pointer_traits.hpp>

View File

@ -37,7 +37,7 @@
#include <boost/intrusive/pointer_traits.hpp> #include <boost/intrusive/pointer_traits.hpp>
#include <boost/core/no_exceptions_support.hpp> #include <boost/core/no_exceptions_support.hpp>
#include <boost/aligned_storage.hpp> #include <boost/aligned_storage.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/iterator.hpp> #include <boost/move/iterator.hpp>
#include <boost/move/detail/move_helpers.hpp> #include <boost/move/detail/move_helpers.hpp>
#include <algorithm> //max #include <algorithm> //max

View File

@ -25,7 +25,7 @@
#include <boost/container/allocator_traits.hpp> #include <boost/container/allocator_traits.hpp>
#include <boost/container/detail/allocator_version_traits.hpp> #include <boost/container/detail/allocator_version_traits.hpp>
#include <boost/container/detail/mpl.hpp> #include <boost/container/detail/mpl.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/static_assert.hpp> #include <boost/static_assert.hpp>
#include <boost/functional/hash.hpp> #include <boost/functional/hash.hpp>
#include <boost/intrusive/pointer_traits.hpp> #include <boost/intrusive/pointer_traits.hpp>

View File

@ -41,7 +41,7 @@
#include <boost/container/allocator_traits.hpp> #include <boost/container/allocator_traits.hpp>
#include <boost/container/detail/allocator_version_traits.hpp> #include <boost/container/detail/allocator_version_traits.hpp>
#include <boost/container/throw_exception.hpp> #include <boost/container/throw_exception.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/iterator.hpp> #include <boost/move/iterator.hpp>
#include <boost/move/detail/move_helpers.hpp> #include <boost/move/detail/move_helpers.hpp>
#include <boost/move/traits.hpp> #include <boost/move/traits.hpp>
@ -351,8 +351,8 @@ struct vector_alloc_holder
size_type next_capacity(size_type additional_objects) const size_type next_capacity(size_type additional_objects) const
{ {
return next_capacity_calculator return next_capacity_calculator
<size_type, NextCapacityDouble/*NextCapacity60Percent*/>:: <size_type, NextCapacityDouble //NextCapacity60Percent
get( allocator_traits_type::max_size(this->alloc()) >::get( allocator_traits_type::max_size(this->alloc())
, this->m_capacity, additional_objects ); , this->m_capacity, additional_objects );
} }

View File

@ -1,10 +1,7 @@
->Change "insert" and "push_back"/"push_front" to catch non-const rvalues ->Change "insert" and "push_back"/"push_front" to catch non-const rvalues
->Add an example with stateful allocators ->Add an example with stateful allocators
->Add test to check convertible types in push_back/insert ->Add test to check convertible types in push_back/insert
->Add SCARY iterators.
->Align with C++11 [multi]map::insert(P &&p) overload. ->Align with C++11 [multi]map::insert(P &&p) overload.
->Unify all allocator version traits in one class (starting from stable_vector_detail::allocator_version_wrapper)
maybe in allocator_traits?
->Fix code marked with "//to-do: if possible, an efficient way to deallocate allocated blocks" ->Fix code marked with "//to-do: if possible, an efficient way to deallocate allocated blocks"
->Add BOOST_CONTAINER_TRY, etc. macros to allow disabling exceptions only in this library (just like Boost.Intrusive) ->Add BOOST_CONTAINER_TRY, etc. macros to allow disabling exceptions only in this library (just like Boost.Intrusive)
->Add macro to change the default allocator std::allocator to another one ->Add macro to change the default allocator std::allocator to another one

View File

@ -14,7 +14,7 @@
#include <boost/type_traits/is_same.hpp> #include <boost/type_traits/is_same.hpp>
#include <boost/type_traits/integral_constant.hpp> #include <boost/type_traits/integral_constant.hpp>
#include <boost/container/detail/function_detector.hpp> #include <boost/container/detail/function_detector.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <memory> #include <memory>
template<class T> template<class T>

View File

@ -19,7 +19,7 @@
#include <functional> #include <functional>
#include <list> #include <list>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/container/detail/mpl.hpp> #include <boost/container/detail/mpl.hpp>
#include "print_container.hpp" #include "print_container.hpp"
#include "check_equal_containers.hpp" #include "check_equal_containers.hpp"
@ -28,7 +28,7 @@
#include <vector> #include <vector>
#include "emplace_test.hpp" #include "emplace_test.hpp"
#include "input_from_forward_iterator.hpp" #include "input_from_forward_iterator.hpp"
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/iterator.hpp> #include <boost/move/iterator.hpp>
#include <boost/core/no_exceptions_support.hpp> #include <boost/core/no_exceptions_support.hpp>
#include <boost/static_assert.hpp> #include <boost/static_assert.hpp>

View File

@ -25,7 +25,7 @@
#include "check_equal_containers.hpp" #include "check_equal_containers.hpp"
#include "dummy_test_allocator.hpp" #include "dummy_test_allocator.hpp"
#include "movable_int.hpp" #include "movable_int.hpp"
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/iterator.hpp> #include <boost/move/iterator.hpp>
#include <boost/container/detail/mpl.hpp> #include <boost/container/detail/mpl.hpp>
#include <boost/container/detail/type_traits.hpp> #include <boost/container/detail/type_traits.hpp>

View File

@ -27,7 +27,7 @@
#include <boost/container/detail/version_type.hpp> #include <boost/container/detail/version_type.hpp>
#include <boost/container/detail/multiallocation_chain.hpp> #include <boost/container/detail/multiallocation_chain.hpp>
#include <boost/container/throw_exception.hpp> #include <boost/container/throw_exception.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <memory> #include <memory>
#include <algorithm> #include <algorithm>
#include <cstddef> #include <cstddef>

View File

@ -15,7 +15,7 @@
#include <boost/container/detail/config_begin.hpp> #include <boost/container/detail/config_begin.hpp>
#include <boost/container/detail/workaround.hpp> #include <boost/container/detail/workaround.hpp>
#include <boost/container/detail/mpl.hpp> #include <boost/container/detail/mpl.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/container/detail/utilities.hpp> #include <boost/container/detail/utilities.hpp>
#include <boost/aligned_storage.hpp> #include <boost/aligned_storage.hpp>

View File

@ -14,7 +14,7 @@
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
#include <iostream> #include <iostream>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/container/vector.hpp> #include <boost/container/vector.hpp>
#include <boost/core/lightweight_test.hpp> #include <boost/core/lightweight_test.hpp>

View File

@ -19,7 +19,7 @@
#include <functional> #include <functional>
#include "print_container.hpp" #include "print_container.hpp"
#include "input_from_forward_iterator.hpp" #include "input_from_forward_iterator.hpp"
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/iterator.hpp> #include <boost/move/iterator.hpp>
#include <string> #include <string>

View File

@ -20,7 +20,7 @@
#include <boost/container/detail/utilities.hpp> #include <boost/container/detail/utilities.hpp>
#include <boost/container/detail/pair.hpp> #include <boost/container/detail/pair.hpp>
#include <boost/move/iterator.hpp> #include <boost/move/iterator.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <string> #include <string>
#include <boost/intrusive/detail/has_member_function_callable_with.hpp> #include <boost/intrusive/detail/has_member_function_callable_with.hpp>

View File

@ -13,7 +13,7 @@
#include <boost/container/detail/config_begin.hpp> #include <boost/container/detail/config_begin.hpp>
#include <boost/container/detail/workaround.hpp> #include <boost/container/detail/workaround.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <ostream> #include <ostream>
namespace boost { namespace boost {

View File

@ -12,7 +12,7 @@
#include <boost/container/detail/utilities.hpp> #include <boost/container/detail/utilities.hpp>
#include <cstddef> #include <cstddef>
#include <boost/container/detail/mpl.hpp> #include <boost/container/detail/mpl.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/type_traits/integral_constant.hpp> #include <boost/type_traits/integral_constant.hpp>
#include <memory> #include <memory>

View File

@ -1,7 +1,7 @@
#include <boost/container/detail/config_begin.hpp> #include <boost/container/detail/config_begin.hpp>
#include <memory> #include <memory>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/container/vector.hpp> #include <boost/container/vector.hpp>
#include <boost/container/deque.hpp> #include <boost/container/deque.hpp>
#include <boost/container/list.hpp> #include <boost/container/list.hpp>

View File

@ -17,7 +17,7 @@
#include <set> #include <set>
#include <functional> #include <functional>
#include "print_container.hpp" #include "print_container.hpp"
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/iterator.hpp> #include <boost/move/iterator.hpp>
#include <string> #include <string>

View File

@ -19,7 +19,7 @@
#include <boost/container/node_allocator.hpp> #include <boost/container/node_allocator.hpp>
#include <boost/container/adaptive_pool.hpp> #include <boost/container/adaptive_pool.hpp>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include "check_equal_containers.hpp" #include "check_equal_containers.hpp"
#include "movable_int.hpp" #include "movable_int.hpp"
#include "expand_bwd_test_allocator.hpp" #include "expand_bwd_test_allocator.hpp"

View File

@ -19,7 +19,7 @@
#include <functional> #include <functional>
#include <list> #include <list>
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/container/detail/mpl.hpp> #include <boost/container/detail/mpl.hpp>
#include "print_container.hpp" #include "print_container.hpp"
#include "check_equal_containers.hpp" #include "check_equal_containers.hpp"
@ -28,7 +28,7 @@
#include <vector> #include <vector>
#include "emplace_test.hpp" #include "emplace_test.hpp"
#include "input_from_forward_iterator.hpp" #include "input_from_forward_iterator.hpp"
#include <boost/move/utility.hpp> #include <boost/move/utility_core.hpp>
#include <boost/move/iterator.hpp> #include <boost/move/iterator.hpp>
#include <boost/core/no_exceptions_support.hpp> #include <boost/core/no_exceptions_support.hpp>
#include <boost/static_assert.hpp> #include <boost/static_assert.hpp>