diff --git a/include/boost/python/suite/indexing/indexing_suite.hpp b/include/boost/python/suite/indexing/indexing_suite.hpp index 5fd8af22..c9cc922b 100644 --- a/include/boost/python/suite/indexing/indexing_suite.hpp +++ b/include/boost/python/suite/indexing/indexing_suite.hpp @@ -126,10 +126,16 @@ namespace boost { namespace python { typedef detail::container_element container_element_t; +#if !defined(BOOST_MSVC) || (BOOST_MSVC > 1200) + typedef return_internal_reference<> return_policy; +#else + struct return_policy : return_internal_reference<> {}; +#endif + typedef typename mpl::if_< no_proxy , iterator - , iterator > >::type + , iterator >::type def_iterator; typedef typename mpl::if_<