diff options
author | Kevin R. Thornton <krthornt@uci.edu> | 2016-02-22 11:17:42 -0800 |
---|---|---|
committer | Kevin R. Thornton <krthornt@uci.edu> | 2016-02-22 11:17:42 -0800 |
commit | b591de14a09ca4036d8b4f3fb9612b67533088b4 (patch) | |
tree | 46785a5d7c085bfd4e9545ea5660d12132f1215a | |
parent | a72d2d5f982820435f72211e62622bb3f0032af4 (diff) | |
download | cython-b591de14a09ca4036d8b4f3fb9612b67533088b4.tar.gz |
add C++11 default_delete. update unique_ptr to take default
template argument
-rw-r--r-- | Cython/Includes/libcpp/memory.pxd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Cython/Includes/libcpp/memory.pxd b/Cython/Includes/libcpp/memory.pxd index 894dcf52a..00128de0f 100644 --- a/Cython/Includes/libcpp/memory.pxd +++ b/Cython/Includes/libcpp/memory.pxd @@ -1,8 +1,10 @@ from libcpp cimport bool, nullptr_t, nullptr cdef extern from "<memory>" namespace "std" nogil: + cdef cppclass default_delete[T]: + default_delete() - cdef cppclass unique_ptr[T]: + cdef cppclass unique_ptr[T,DELETER=*]: unique_ptr() unique_ptr(nullptr_t) unique_ptr(T*) |