diff --git a/src/Memory/borrowed_ptr.hpp b/src/Memory/borrowed_ptr.hpp index 74f5e2c..eefdd70 100644 --- a/src/Memory/borrowed_ptr.hpp +++ b/src/Memory/borrowed_ptr.hpp @@ -22,8 +22,8 @@ public: return *this; } - inline T* operator->() noexcept { return _raw; } - inline T* GetRaw() noexcept { return _raw; } + inline T* operator->() const noexcept { return _raw; } + inline T* GetRaw() const noexcept { return _raw; } inline bool operator==(const borrowed_ptr& rhs) const { return _raw == rhs._raw; } inline bool operator!=(const borrowed_ptr& rhs) const { return _raw != rhs._raw; }