From ae73e60f944b81d9dc6028b1e04a975cf3518699 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 29 Mar 2020 19:01:28 +0200 Subject: [PATCH] Allow assignment operator for OwnPtr. --- src/Memory/NonNullOwnPtr.hpp | 1 - src/Memory/OwnPtr.hpp | 1 - 2 files changed, 2 deletions(-) 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; }