aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/Utilities/UniqueTrackablePtr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/Utilities/UniqueTrackablePtr.h b/src/common/Utilities/UniqueTrackablePtr.h
index 7b1d9c236db..6c90dfd2752 100644
--- a/src/common/Utilities/UniqueTrackablePtr.h
+++ b/src/common/Utilities/UniqueTrackablePtr.h
@@ -198,6 +198,12 @@ public:
~unique_weak_ptr() = default;
+ unique_weak_ptr& operator=(std::nullptr_t) noexcept
+ {
+ _ptr.reset();
+ return *this;
+ }
+
void swap(unique_weak_ptr& other) noexcept
{
using std::swap;