Commit 2153b115 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #487 from zyv/smart-pointer-factories

Add declarations for C++11/14 smart pointer factories (make_shared & make_unique)
parents 7ea2d4fc 807c469c
...@@ -85,3 +85,9 @@ cdef extern from "<memory>" namespace "std" nogil: ...@@ -85,3 +85,9 @@ cdef extern from "<memory>" namespace "std" nogil:
shared_ptr[T] lock() shared_ptr[T] lock()
bool owner_before[Y](const weak_ptr[Y]&) bool owner_before[Y](const weak_ptr[Y]&)
bool owner_before[Y](const shared_ptr[Y]&) bool owner_before[Y](const shared_ptr[Y]&)
# Smart pointer non-member operations
shared_ptr[T] make_shared[T](...) except +
# Temporaries used for exception handling break generated code
unique_ptr[T] make_unique[T](...) # except +
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment