summaryrefslogtreecommitdiff
path: root/boost/python/to_python_indirect.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/python/to_python_indirect.hpp')
-rw-r--r--boost/python/to_python_indirect.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/boost/python/to_python_indirect.hpp b/boost/python/to_python_indirect.hpp
index 23ad026319..af6ed33b9b 100644
--- a/boost/python/to_python_indirect.hpp
+++ b/boost/python/to_python_indirect.hpp
@@ -86,8 +86,10 @@ namespace detail
// copy constructor.
# if defined(__ICL) && __ICL < 600
typedef boost::shared_ptr<T> smart_pointer;
-# else
+# elif __cplusplus < 201103L
typedef std::auto_ptr<T> smart_pointer;
+# else
+ typedef std::unique_ptr<T> smart_pointer;
# endif
typedef objects::pointer_holder<smart_pointer, T> holder_t;