mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 12:23:15 +00:00
AK: Add RetainPtr::operator==() overload G++ is whining about.
This commit is contained in:
parent
77418c1942
commit
b985d0ec6e
|
@ -128,6 +128,9 @@ public:
|
|||
bool operator==(const T* other) const { return m_ptr == other; }
|
||||
bool operator!=(const T* other) const { return m_ptr != other; }
|
||||
|
||||
bool operator==(T* other) { return m_ptr == other; }
|
||||
bool operator!=(T* other) { return m_ptr != other; }
|
||||
|
||||
bool is_null() const { return !m_ptr; }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue