Fixed OwnPtr not returning right version on BorrowNonNull.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-03-30 18:20:02 +02:00
parent 16b082f00d
commit 86c7aba0ea
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ namespace Arbutils::Memory {
inline BorrowedPtr<T> Borrow() { return BorrowedPtr<T>(_ptr); }
inline const BorrowedPtr<const T> Borrow() const { return BorrowedPtr<const T>(_ptr); }
inline BorrowedPtr<T> BorrowNonNull() { return NonNullBorrowedPtr<T>(_ptr); }
inline const BorrowedPtr<const T> BorrowNonNull() const { return NonNullBorrowedPtr<const T>(_ptr); }
inline NonNullBorrowedPtr<T> BorrowNonNull() { return NonNullBorrowedPtr<T>(_ptr); }
inline const NonNullBorrowedPtr<const T> BorrowNonNull() const { return NonNullBorrowedPtr<const T>(_ptr); }
T* operator->() noexcept { return _ptr; }
const T* operator->() const noexcept { return _ptr; }