summaryrefslogtreecommitdiff
path: root/Cython/Includes/libcpp
diff options
context:
space:
mode:
authorSøren Fuglede Jørgensen <github@fuglede.dk>2021-05-24 12:34:56 +0200
committerGitHub <noreply@github.com>2021-05-24 12:34:56 +0200
commit0531b72c6d9fb8ba44b8e365693066e15c7edce7 (patch)
tree551c97ca4dea930bcd60bc8f7a7e6427b725b65b /Cython/Includes/libcpp
parentd53646f193bf8be44495c3294d8c76c986b7921e (diff)
downloadcython-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.pxd1
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()