diff options
Diffstat (limited to 'source/RcPtr.hpp')
-rw-r--r-- | source/RcPtr.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/RcPtr.hpp b/source/RcPtr.hpp index 90097e1..5958db4 100644 --- a/source/RcPtr.hpp +++ b/source/RcPtr.hpp @@ -94,6 +94,11 @@ public: return mPtr == ptr; } + template <class TThat> + bool operator==(const RcPtr<TThat>& ptr) const { + return mPtr == ptr.Get(); + } + T* Get() const { return mPtr; } |