Allow assignment operator for OwnPtr.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
72b545f5e3
commit
ae73e60f94
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue