diff --git a/include/boost/python/suite/indexing/container_proxy.hpp b/include/boost/python/suite/indexing/container_proxy.hpp index ada3aafa..cb76eece 100755 --- a/include/boost/python/suite/indexing/container_proxy.hpp +++ b/include/boost/python/suite/indexing/container_proxy.hpp @@ -23,9 +23,7 @@ #include #include -#include #include -#include #include #include @@ -62,7 +60,7 @@ namespace boost { namespace python { namespace indexing { { typedef container_proxy self_type; typedef typename Container::iterator raw_iterator; - typedef std::iterator_traits raw_iterator_traits; + typedef ::boost::detail::iterator_traits raw_iterator_traits; template friend class shared_proxy_impl; template friend class proxy_iterator; @@ -391,7 +389,7 @@ namespace boost { namespace python { namespace indexing { ::insert (iterator iter, Iter from, Iter to) { // Forward insertion to the right overloaded version - typedef typename std::iterator_traits::iterator_category category; + typedef typename BOOST_ITERATOR_CATEGORY::type category; insert (iter, from, to, category()); } diff --git a/include/boost/python/suite/indexing/iterator_pair.hpp b/include/boost/python/suite/indexing/iterator_pair.hpp index 6162b429..557047bb 100755 --- a/include/boost/python/suite/indexing/iterator_pair.hpp +++ b/include/boost/python/suite/indexing/iterator_pair.hpp @@ -21,11 +21,11 @@ #ifndef BOOST_PYTHON_INDEXING_ITERATOR_PAIR_HPP #define BOOST_PYTHON_INDEXING_ITERATOR_PAIR_HPP -#include #include #include #include #include +#include namespace boost { namespace python { namespace indexing { template @@ -33,7 +33,7 @@ namespace boost { namespace python { namespace indexing { { private: typedef typename boost::call_traits::param_type iterator_param; - typedef std::iterator_traits std_traits; + typedef ::boost::detail::iterator_traits std_traits; public: typedef typename std_traits::reference reference; diff --git a/include/boost/python/suite/indexing/iterator_traits.hpp b/include/boost/python/suite/indexing/iterator_traits.hpp index 9f21aafd..9d688730 100755 --- a/include/boost/python/suite/indexing/iterator_traits.hpp +++ b/include/boost/python/suite/indexing/iterator_traits.hpp @@ -24,9 +24,9 @@ #include -#include #include #include +#include namespace boost { namespace python { namespace indexing { #if !BOOST_MSVC @@ -55,7 +55,7 @@ namespace boost { namespace python { namespace indexing { struct input_iterator_traits { private: - typedef std::iterator_traits std_traits; + typedef ::boost::detail::iterator_traits std_traits; public: typedef Iterator iterator; @@ -65,8 +65,8 @@ namespace boost { namespace python { namespace indexing { BOOST_STATIC_CONSTANT (bool, has_copyable_iter = false); BOOST_STATIC_CONSTANT (bool, is_reorderable = false); - BOOST_STATIC_CONSTANT (bool, has_mutable_ref - = is_mutable_ref::value); + BOOST_STATIC_CONSTANT ( + bool, has_mutable_ref = is_mutable_ref::value); BOOST_STATIC_CONSTANT (IndexStyle, index_style = index_style_none); }; @@ -140,14 +140,14 @@ namespace boost { namespace python { namespace indexing { template class traits_by_category { - typedef typename std::iterator_traits::iterator_category - iterator_category; + typedef typename BOOST_ITERATOR_CATEGORY::type category; - BOOST_STATIC_CONSTANT (size_t, size - = sizeof(sizer(iterator_category()))); + BOOST_STATIC_CONSTANT ( + size_t, size = sizeof (sizer (category()))); public: - typedef typename traits_by_size::template traits::type type; + typedef typename traits_by_size + ::template traits::type type; }; }