cython: change shared_ptr invocation to libcpp.memory

This commit is contained in:
Seva Ivanov authored and Adrien Béraud committed 2016-08-16 10:48:14 -04:00
1 parent e74b29eefd
commit 5a879fe31e
2 files changed
+12 -17

No files matched your search

+1 -7
View File
@@ -20,17 +20,11 @@ from libcpp cimport bool
from libcpp.string cimport string
from libcpp.vector cimport vector
from libcpp.utility cimport pair
from libcpp.memory cimport shared_ptr
ctypedef uint16_t in_port_t
ctypedef unsigned short int sa_family_t;
cdef extern from "<memory>" namespace "std" nogil:
cdef cppclass shared_ptr[T]:
shared_ptr() except +
T* get()
T operator*()
void reset(T*)
cdef extern from "<functional>" namespace "std" nogil:
cdef cppclass hash[T]:
hash() except +