Allow access of raw template type when const.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-03-30 18:29:49 +02:00
parent 86c7aba0ea
commit f8b4d79e28
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
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; }

View File

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

View File

@ -26,7 +26,7 @@ namespace Arbutils::Memory {
inline const BorrowedPtr<const T> BorrowOptional() const { return BorrowedPtr<const T>(_ptr); }
T* operator->() noexcept { return _ptr; }
const T* operator->() const noexcept { return _ptr; }
T* operator->() const noexcept { return _ptr; }
inline bool operator==(const NonNullOwnPtr& rhs) const noexcept { return _ptr == rhs._ptr; }
inline bool operator!=(const NonNullOwnPtr& rhs) const noexcept { return _ptr != rhs._ptr; }

View File

@ -27,7 +27,7 @@ namespace Arbutils::Memory {
inline const NonNullBorrowedPtr<const T> BorrowNonNull() const { return NonNullBorrowedPtr<const T>(_ptr); }
T* operator->() noexcept { return _ptr; }
const T* operator->() const noexcept { return _ptr; }
T* operator->() const noexcept { return _ptr; }
inline bool operator==(const OwnPtr& rhs) const noexcept { return _ptr == rhs._ptr; }
inline bool operator!=(const OwnPtr& rhs) const noexcept { return _ptr != rhs._ptr; }