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;