From e7ef3f208c109357538b1f68af10bcd78db95c95 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Fri, 8 Apr 2022 22:30:12 -0700 Subject: Changeset: 3 More work --- source/RcPtr.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/RcPtr.hpp') 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 + bool operator==(const RcPtr& ptr) const { + return mPtr == ptr.Get(); + } + T* Get() const { return mPtr; } -- cgit v1.2.3-70-g09d2