From f4c2b0de41f703aa2000c344484e7cd37db56a32 Mon Sep 17 00:00:00 2001 From: Vincent Isambart Date: Fri, 29 Apr 2022 00:37:58 +0900 Subject: 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 --- source/core/slang-smart-pointer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/core') 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 ptr) { *this = ptr; } TransformablePtr(const TransformablePtr& ptr) = default; + TransformablePtr& operator=(const TransformablePtr& ptr) = default; void promoteToStrongReference() { m_strongPtr = m_weakPtr; } void demoteToWeakReference() { m_strongPtr = nullptr; } -- cgit v1.2.3