diff --git a/include/boost/python/suite/indexing/indexing_suite.hpp b/include/boost/python/suite/indexing/indexing_suite.hpp index c9cc922b..e2dc4a85 100644 --- a/include/boost/python/suite/indexing/indexing_suite.hpp +++ b/include/boost/python/suite/indexing/indexing_suite.hpp @@ -126,10 +126,10 @@ 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 +#if BOOST_WORKAROUND(BOOST_MSVC, == 1200) struct return_policy : return_internal_reference<> {}; +#else + typedef return_internal_reference<> return_policy; #endif typedef typename mpl::if_<