Allow assignment operator for OwnPtr.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-03-29 19:01:28 +02:00
parent 72b545f5e3
commit ae73e60f94
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 0 additions and 2 deletions

View File

@ -13,7 +13,6 @@ namespace Arbutils::Memory {
inline explicit NonNullOwnPtr(T* ptr) : _ptr(ptr) { AssertNotNull(ptr); };
NonNullOwnPtr<T>(const NonNullOwnPtr<T>&) = delete;
NonNullOwnPtr<T>& operator=(OwnPtr<T> const&) = delete;
inline ~NonNullOwnPtr() noexcept { delete _ptr; }

View File

@ -12,7 +12,6 @@ namespace Arbutils::Memory {
inline explicit constexpr OwnPtr(T* ptr) noexcept : _ptr(ptr){};
OwnPtr<T>(const OwnPtr<T>&) = delete;
OwnPtr<T>& operator=(OwnPtr<T> const&) = delete;
inline ~OwnPtr() noexcept { delete _ptr; }