File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 99#include < boost/python/extract.hpp>
1010#include < boost/python/def.hpp>
1111#include < boost/python/implicit.hpp>
12- #include " test_class.hpp"
1312
13+ #include < boost/detail/workaround.hpp>
14+
15+ #include " test_class.hpp"
1416#include < memory>
1517
1618using namespace boost ::python;
@@ -70,7 +72,7 @@ BOOST_PYTHON_MODULE(auto_ptr_ext)
7072 ;
7173
7274 // VC6 auto_ptrs do not have converting constructors
73- #if defined(BOOST_MSVC_STD_ITERATOR )
75+ #if BOOST_WORKAROUND(BOOST_DINKUMWARE_STDLIB, < 306 )
7476 scope ().attr (" broken_auto_ptr" ) = 1 ;
7577#else
7678 scope ().attr (" broken_auto_ptr" ) = 0 ;
Original file line number Diff line number Diff line change 2222>>> broken_auto_ptr and -1 or look(x)
2323-1
2424
25- >>> if not '--broken-auto-ptr' in sys.argv :
25+ >>> if not broken_auto_ptr :
2626... try: x.value()
2727... except TypeError: pass
2828... else: print 'expected a TypeError exception'
You can’t perform that action at this time.
0 commit comments