Allow functions for GetNonNull and GetOptional to work when const.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user