mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 05:22:45 +00:00
Fixes for Intel5
[SVN r17658]
This commit is contained in:
@@ -9,8 +9,10 @@
|
||||
#include <boost/python/extract.hpp>
|
||||
#include <boost/python/def.hpp>
|
||||
#include <boost/python/implicit.hpp>
|
||||
#include "test_class.hpp"
|
||||
|
||||
#include <boost/detail/workaround.hpp>
|
||||
|
||||
#include "test_class.hpp"
|
||||
#include <memory>
|
||||
|
||||
using namespace boost::python;
|
||||
@@ -70,7 +72,7 @@ BOOST_PYTHON_MODULE(auto_ptr_ext)
|
||||
;
|
||||
|
||||
// VC6 auto_ptrs do not have converting constructors
|
||||
#if defined(BOOST_MSVC_STD_ITERATOR)
|
||||
#if BOOST_WORKAROUND(BOOST_DINKUMWARE_STDLIB, < 306)
|
||||
scope().attr("broken_auto_ptr") = 1;
|
||||
#else
|
||||
scope().attr("broken_auto_ptr") = 0;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
>>> broken_auto_ptr and -1 or look(x)
|
||||
-1
|
||||
|
||||
>>> if not '--broken-auto-ptr' in sys.argv:
|
||||
>>> if not broken_auto_ptr:
|
||||
... try: x.value()
|
||||
... except TypeError: pass
|
||||
... else: print 'expected a TypeError exception'
|
||||
|
||||
Reference in New Issue
Block a user