mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 05:42:30 +00:00
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]
This commit is contained in:
@@ -38,18 +38,22 @@ namespace boost { namespace python { namespace indexing {
|
||||
|
||||
template<typename Container>
|
||||
struct base_container_traits
|
||||
: public iterator_detail::traits_by_category <
|
||||
: public ::boost::python::indexing::iterator_traits <
|
||||
typename mpl::if_ <
|
||||
is_const<Container>
|
||||
, typename Container::const_iterator
|
||||
, typename Container::iterator
|
||||
>::type
|
||||
>::type
|
||||
>
|
||||
{
|
||||
protected:
|
||||
typedef typename
|
||||
iterator_detail::traits_by_category<typename Container::iterator>
|
||||
::type base_type;
|
||||
typedef ::boost::python::indexing::iterator_traits <
|
||||
typename mpl::if_ <
|
||||
is_const<Container>
|
||||
, typename Container::const_iterator
|
||||
, typename Container::iterator
|
||||
>::type
|
||||
> base_type;
|
||||
|
||||
BOOST_STATIC_CONSTANT (bool, is_mutable
|
||||
= ! boost::is_const<Container>::value);
|
||||
|
||||
Reference in New Issue
Block a user