We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00e3fa3 commit 034ca4dCopy full SHA for 034ca4d
1 file changed
include/boost/python/suite/indexing/indexing_suite.hpp
@@ -126,10 +126,16 @@ namespace boost { namespace python {
126
typedef detail::container_element<Container, Index, DerivedPolicies>
127
container_element_t;
128
129
+#if !defined(BOOST_MSVC) || (BOOST_MSVC > 1200)
130
+ typedef return_internal_reference<> return_policy;
131
+#else
132
+ struct return_policy : return_internal_reference<> {};
133
+#endif
134
+
135
typedef typename mpl::if_<
136
no_proxy
137
, iterator<Container>
- , iterator<Container, return_internal_reference<> > >::type
138
+ , iterator<Container, return_policy> >::type
139
def_iterator;
140
141
0 commit comments