Adds implicit cast to raw pointer to ScopedPtr.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
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…
Reference in New Issue