Skip to content

Commit 2c4fa48

Browse files
committed
Fixes for Intel5
[SVN r17658]
1 parent 90fcd93 commit 2c4fa48

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

test/auto_ptr.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
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

1618
using 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;

test/auto_ptr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
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'

0 commit comments

Comments
 (0)