Skip to content

Commit 034ca4d

Browse files
committed
mscv workaround
[SVN r19962]
1 parent 00e3fa3 commit 034ca4d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

include/boost/python/suite/indexing/indexing_suite.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,16 @@ namespace boost { namespace python {
126126
typedef detail::container_element<Container, Index, DerivedPolicies>
127127
container_element_t;
128128

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+
129135
typedef typename mpl::if_<
130136
no_proxy
131137
, iterator<Container>
132-
, iterator<Container, return_internal_reference<> > >::type
138+
, iterator<Container, return_policy> >::type
133139
def_iterator;
134140

135141
typedef typename mpl::if_<

0 commit comments

Comments
 (0)