summaryrefslogtreecommitdiffstats
path: root/source/core/slang-smart-pointer.h
diff options
context:
space:
mode:
authorVincent Isambart <vincent.isambart@gmail.com>2022-04-29 00:37:58 +0900
committerGitHub <noreply@github.com>2022-04-28 11:37:58 -0400
commitf4c2b0de41f703aa2000c344484e7cd37db56a32 (patch)
tree53088595140326c787f77ec41d73024efb0b6f44 /source/core/slang-smart-pointer.h
parent80ea76afecf8b039b8bcc71852eaa1def6f85544 (diff)
Fix errors when building with the latest Xcode (#2215)
* Fix errors when building with the latest Xcode * Bring back unused variable to better match comments Co-authored-by: jsmall-nvidia <jsmall@nvidia.com>
Diffstat (limited to 'source/core/slang-smart-pointer.h')
-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; }