diff options
author | Søren Fuglede Jørgensen <github@fuglede.dk> | 2021-05-24 12:34:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 12:34:56 +0200 |
commit | 0531b72c6d9fb8ba44b8e365693066e15c7edce7 (patch) | |
tree | 551c97ca4dea930bcd60bc8f7a7e6427b725b65b /Cython/Includes/libcpp | |
parent | d53646f193bf8be44495c3294d8c76c986b7921e (diff) | |
download | cython-0531b72c6d9fb8ba44b8e365693066e15c7edce7.tar.gz |
Add operator= to shared_ptr for assignments to base classes (GH-4185)
Diffstat (limited to 'Cython/Includes/libcpp')
-rw-r--r-- | Cython/Includes/libcpp/memory.pxd | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Cython/Includes/libcpp/memory.pxd b/Cython/Includes/libcpp/memory.pxd index 2151c1ec7..c477c93fe 100644 --- a/Cython/Includes/libcpp/memory.pxd +++ b/Cython/Includes/libcpp/memory.pxd @@ -59,6 +59,7 @@ cdef extern from "<memory>" namespace "std" nogil: shared_ptr(shared_ptr[T]&, T*) shared_ptr(unique_ptr[T]&) #shared_ptr(weak_ptr[T]&) # Not Supported + shared_ptr[T]& operator=[Y](const shared_ptr[Y]& ptr) # Modifiers void reset() |