Allow access of raw template type when const.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-30 18:29:49 +02:00
parent 86c7aba0ea
commit f8b4d79e28
4 changed files with 4 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ namespace Arbutils::Memory {
inline constexpr bool IsNull() const noexcept { return _ptr == nullptr; }
T* operator->() noexcept { return _ptr; }
const T* operator->() const noexcept { return _ptr; }
T* operator->() const noexcept { return _ptr; }
inline bool operator==(const BorrowedPtr& rhs) const noexcept { return _ptr == rhs._ptr; }
inline bool operator!=(const BorrowedPtr& rhs) const noexcept { return _ptr != rhs._ptr; }