Adds implicit cast to raw pointer to ScopedPtr.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-03-27 11:08:09 +01:00
parent ce1268b1de
commit 29ac434679
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ namespace ArbUt {
inline bool operator!=(const ScopedPtr& rhs) const noexcept { return _raw != rhs._raw; } inline bool operator!=(const ScopedPtr& rhs) const noexcept { return _raw != rhs._raw; }
/// @brief Check equality of pointers /// @brief Check equality of pointers
inline bool operator!=(T* rhs) const noexcept { return _raw != rhs; } inline bool operator!=(T* rhs) const noexcept { return _raw != rhs; }
/// @brief Implicit cast to retrieve raw pointer.
inline operator T*() const noexcept { return _raw; }
}; };
} }