diff --git a/src/Memory/NonNullOwnPtr.hpp b/src/Memory/NonNullOwnPtr.hpp index ea50678..3a18a33 100644 --- a/src/Memory/NonNullOwnPtr.hpp +++ b/src/Memory/NonNullOwnPtr.hpp @@ -13,7 +13,6 @@ namespace Arbutils::Memory { inline explicit NonNullOwnPtr(T* ptr) : _ptr(ptr) { AssertNotNull(ptr); }; NonNullOwnPtr(const NonNullOwnPtr&) = delete; - NonNullOwnPtr& operator=(OwnPtr const&) = delete; inline ~NonNullOwnPtr() noexcept { delete _ptr; } diff --git a/src/Memory/OwnPtr.hpp b/src/Memory/OwnPtr.hpp index b0c5d13..c18c3b7 100644 --- a/src/Memory/OwnPtr.hpp +++ b/src/Memory/OwnPtr.hpp @@ -12,7 +12,6 @@ namespace Arbutils::Memory { inline explicit constexpr OwnPtr(T* ptr) noexcept : _ptr(ptr){}; OwnPtr(const OwnPtr&) = delete; - OwnPtr& operator=(OwnPtr const&) = delete; inline ~OwnPtr() noexcept { delete _ptr; }