diff options
Diffstat (limited to 'boost/python/object/pointer_holder.hpp')
-rw-r--r-- | boost/python/object/pointer_holder.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/boost/python/object/pointer_holder.hpp b/boost/python/object/pointer_holder.hpp index b28cbd83c8..c5caefe62c 100644 --- a/boost/python/object/pointer_holder.hpp +++ b/boost/python/object/pointer_holder.hpp @@ -21,6 +21,7 @@ # include <boost/python/detail/wrapper_base.hpp> # include <boost/python/detail/force_instantiate.hpp> # include <boost/python/detail/preprocessor.hpp> +# include <boost/python/detail/type_traits.hpp> # include <boost/mpl/if.hpp> @@ -35,8 +36,6 @@ # include <boost/detail/workaround.hpp> -# include <boost/type_traits/remove_const.hpp> - namespace boost { namespace python { template <class T> class wrapper; @@ -128,7 +127,7 @@ inline pointer_holder_back_reference<Pointer,Value>::pointer_holder_back_referen template <class Pointer, class Value> void* pointer_holder<Pointer, Value>::holds(type_info dst_t, bool null_ptr_only) { - typedef typename boost::remove_const< Value >::type non_const_value; + typedef typename boost::python::detail::remove_const< Value >::type non_const_value; if (dst_t == python::type_id<Pointer>() && !(null_ptr_only && get_pointer(this->m_p)) |