mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Utils: Added nullptr_t assignment operator to unique_weak_ptr (alias for .reset())
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user