From ddafb2d4efa38352fe0c457771f4cf3a61b43f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 2 Aug 2014 10:13:54 +0200 Subject: [PATCH] Use intrusive utilities instead of boost utilities to limit dependencies. --- include/boost/intrusive/bstree.hpp | 2 +- include/boost/intrusive/list.hpp | 2 +- include/boost/intrusive/slist.hpp | 3 ++- test/bounded_pointer.hpp | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/boost/intrusive/bstree.hpp b/include/boost/intrusive/bstree.hpp index 2af42cc..054b4b5 100644 --- a/include/boost/intrusive/bstree.hpp +++ b/include/boost/intrusive/bstree.hpp @@ -77,7 +77,7 @@ struct bstbase3 static const bool safemode_or_autounlink = is_safe_autounlink::value; static const bool stateful_value_traits = detail::is_stateful_value_traits::value; static const bool has_container_from_iterator = - boost::is_same< header_holder_type, detail::default_header_holder< node_traits > >::value; + detail::is_same< header_holder_type, detail::default_header_holder< node_traits > >::value; struct holder_t : public ValueTraits { diff --git a/include/boost/intrusive/list.hpp b/include/boost/intrusive/list.hpp index c22e3af..cea73fe 100644 --- a/include/boost/intrusive/list.hpp +++ b/include/boost/intrusive/list.hpp @@ -88,7 +88,7 @@ class list_impl static const bool constant_time_size = ConstantTimeSize; static const bool stateful_value_traits = detail::is_stateful_value_traits::value; static const bool has_container_from_iterator = - boost::is_same< header_holder_type, detail::default_header_holder< node_traits > >::value; + detail::is_same< header_holder_type, detail::default_header_holder< node_traits > >::value; /// @cond diff --git a/include/boost/intrusive/slist.hpp b/include/boost/intrusive/slist.hpp index 74d14c1..39837f4 100644 --- a/include/boost/intrusive/slist.hpp +++ b/include/boost/intrusive/slist.hpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -123,7 +124,7 @@ class slist_impl static const bool linear = 0 != (BoolFlags & slist_bool_flags::linear_pos); static const bool cache_last = 0 != (BoolFlags & slist_bool_flags::cache_last_pos); static const bool has_container_from_iterator = - boost::is_same< header_holder_type, detail::default_header_holder< node_traits > >::value; + detail::is_same< header_holder_type, detail::default_header_holder< node_traits > >::value; typedef typename detail::if_c < linear diff --git a/test/bounded_pointer.hpp b/test/bounded_pointer.hpp index b584def..d2672b5 100644 --- a/test/bounded_pointer.hpp +++ b/test/bounded_pointer.hpp @@ -38,7 +38,7 @@ class bounded_pointer typedef void (bounded_pointer::*unspecified_bool_type)() const; public: - typedef typename boost::remove_const< T >::type mut_val_t; + typedef typename boost::intrusive::detail::remove_const< T >::type mut_val_t; typedef const mut_val_t const_val_t; typedef bounded_reference reference; @@ -140,7 +140,7 @@ template < typename T > class bounded_reference { public: - typedef typename boost::remove_const< T >::type mut_val_t; + typedef typename boost::intrusive::detail::remove_const< T >::type mut_val_t; typedef const mut_val_t const_val_t; typedef bounded_pointer< T > pointer; static const unsigned char max_offset = pointer::max_offset;