From 06814a22515ff8077423ffd2c08dc44d792e5434 Mon Sep 17 00:00:00 2001 From: Raoul Gough Date: Thu, 23 Oct 2003 11:03:57 +0000 Subject: [PATCH] Don't use stuff from indexing::iterator_detail (recently changed). Also fix definition of base_type for const-qualified containers in base_container_traits [SVN r20459] --- .../python/suite/indexing/container_traits.hpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/include/boost/python/suite/indexing/container_traits.hpp b/include/boost/python/suite/indexing/container_traits.hpp index 7bcf0828..bfb06081 100755 --- a/include/boost/python/suite/indexing/container_traits.hpp +++ b/include/boost/python/suite/indexing/container_traits.hpp @@ -38,18 +38,22 @@ namespace boost { namespace python { namespace indexing { template struct base_container_traits - : public iterator_detail::traits_by_category < + : public ::boost::python::indexing::iterator_traits < typename mpl::if_ < is_const , typename Container::const_iterator , typename Container::iterator >::type - >::type + > { protected: - typedef typename - iterator_detail::traits_by_category - ::type base_type; + typedef ::boost::python::indexing::iterator_traits < + typename mpl::if_ < + is_const + , typename Container::const_iterator + , typename Container::iterator + >::type + > base_type; BOOST_STATIC_CONSTANT (bool, is_mutable = ! boost::is_const::value);