From b9b8b20f3f6f025cd6a1ad3fcd53d5b73cc59c6a Mon Sep 17 00:00:00 2001 From: czeidler Date: Fri, 5 Oct 2012 12:12:25 +1300 Subject: [PATCH] Add more == and != convenient methods. --- headers/private/shared/Referenceable.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/headers/private/shared/Referenceable.h b/headers/private/shared/Referenceable.h index 9455866080..d25aac5837 100644 --- a/headers/private/shared/Referenceable.h +++ b/headers/private/shared/Referenceable.h @@ -143,11 +143,21 @@ public: return (fObject == other.fObject); } + bool operator==(const Type* other) const + { + return (fObject == other); + } + bool operator!=(const BReference& other) const { return (fObject != other.fObject); } + bool operator!=(const Type* other) const + { + return (fObject != other); + } + private: Type* fObject; };