Skip to content

Commit af2a924

Browse files
committed
more workaround fixes for VC6 linker bug
[SVN r19714]
1 parent 3981e83 commit af2a924

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,13 @@ namespace boost { namespace python {
176176
.def("__delitem__", &base_delete_item)
177177
.def("__getitem__", &base_get_item)
178178
.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.
179184
.def("__iter__", def_iterator())
185+
#endif
180186
;
181187

182188
DerivedPolicies::extension_def(cl);

0 commit comments

Comments
 (0)