Allow functions for GetNonNull and GetOptional to work when const.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4c1ca2e822
commit
4f563e6e67
|
@ -16,7 +16,7 @@ namespace Arbutils::Memory {
|
|||
inline constexpr const T* GetUnsafe() const noexcept { return _ptr; }
|
||||
inline constexpr bool IsNull() const noexcept { return _ptr == nullptr; }
|
||||
|
||||
inline NonNullBorrowedPtr<T> GetNonNull(){
|
||||
inline NonNullBorrowedPtr<T> GetNonNull() const {
|
||||
return NonNullBorrowedPtr<T>(_ptr);
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Arbutils::Memory {
|
|||
inline constexpr T* GetUnsafe() noexcept { return _ptr; }
|
||||
inline constexpr const T* GetUnsafe() const noexcept { return _ptr; }
|
||||
|
||||
inline BorrowedPtr<T> GetOptional(){
|
||||
inline BorrowedPtr<T> GetOptional() const {
|
||||
return BorrowedPtr<T>(_ptr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue