Fixed OwnPtr not returning right version on BorrowNonNull.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
16b082f00d
commit
86c7aba0ea
|
@ -23,8 +23,8 @@ namespace Arbutils::Memory {
|
||||||
|
|
||||||
inline BorrowedPtr<T> Borrow() { return BorrowedPtr<T>(_ptr); }
|
inline BorrowedPtr<T> Borrow() { return BorrowedPtr<T>(_ptr); }
|
||||||
inline const BorrowedPtr<const T> Borrow() const { return BorrowedPtr<const T>(_ptr); }
|
inline const BorrowedPtr<const T> Borrow() const { return BorrowedPtr<const T>(_ptr); }
|
||||||
inline BorrowedPtr<T> BorrowNonNull() { return NonNullBorrowedPtr<T>(_ptr); }
|
inline NonNullBorrowedPtr<T> BorrowNonNull() { return NonNullBorrowedPtr<T>(_ptr); }
|
||||||
inline const BorrowedPtr<const T> BorrowNonNull() const { return NonNullBorrowedPtr<const T>(_ptr); }
|
inline const NonNullBorrowedPtr<const T> BorrowNonNull() const { return NonNullBorrowedPtr<const T>(_ptr); }
|
||||||
|
|
||||||
T* operator->() noexcept { return _ptr; }
|
T* operator->() noexcept { return _ptr; }
|
||||||
const T* operator->() const noexcept { return _ptr; }
|
const T* operator->() const noexcept { return _ptr; }
|
||||||
|
|
Loading…
Reference in New Issue