We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3981e83 commit af2a924Copy full SHA for af2a924
1 file changed
include/boost/python/suite/indexing/indexing_suite.hpp
@@ -176,7 +176,13 @@ namespace boost { namespace python {
176
.def("__delitem__", &base_delete_item)
177
.def("__getitem__", &base_get_item)
178
.def("__contains__", &base_contains)
179
+
180
+#if !defined(BOOST_MSVC) || BOOST_MSVC > 1200
181
+// crazy VC6 doesn't like this! perhaps there's a better
182
+// fix but this one will do for now. def __iter__ is just
183
+// an optimization anyway.
184
.def("__iter__", def_iterator())
185
+#endif
186
;
187
188
DerivedPolicies::extension_def(cl);
0 commit comments