summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-smart-pointer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/core/slang-smart-pointer.h b/source/core/slang-smart-pointer.h
index c473cca3c..45083c1eb 100644
--- a/source/core/slang-smart-pointer.h
+++ b/source/core/slang-smart-pointer.h
@@ -285,6 +285,7 @@ namespace Slang
TransformablePtr(T* ptr) { *this = ptr; }
TransformablePtr(RefPtr<T> ptr) { *this = ptr; }
TransformablePtr(const TransformablePtr<T>& ptr) = default;
+ TransformablePtr<T>& operator=(const TransformablePtr<T>& ptr) = default;
void promoteToStrongReference() { m_strongPtr = m_weakPtr; }
void demoteToWeakReference() { m_strongPtr = nullptr; }