Adds implicit cast to raw pointer to ScopedPtr.
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:
parent
ce1268b1de
commit
29ac434679
@ -63,6 +63,9 @@ namespace ArbUt {
|
||||
inline bool operator!=(const ScopedPtr& rhs) const noexcept { return _raw != rhs._raw; }
|
||||
/// @brief Check equality of pointers
|
||||
inline bool operator!=(T* rhs) const noexcept { return _raw != rhs; }
|
||||
|
||||
/// @brief Implicit cast to retrieve raw pointer.
|
||||
inline operator T*() const noexcept { return _raw; }
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user