diff --git a/panda/src/express/pointerToVoid.I b/panda/src/express/pointerToVoid.I index 93a863531d..e7573c76b6 100644 --- a/panda/src/express/pointerToVoid.I +++ b/panda/src/express/pointerToVoid.I @@ -89,3 +89,23 @@ operator < (const PointerToVoid &other) const { return _void_ptr < other._void_ptr; } +//////////////////////////////////////////////////////////////////// +// Function: PointerToVoid::operator == +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE bool PointerToVoid:: +operator == (const PointerToVoid &other) const { + return _void_ptr == other._void_ptr; +} + +//////////////////////////////////////////////////////////////////// +// Function: PointerToVoid::operator != +// Access: Public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE bool PointerToVoid:: +operator != (const PointerToVoid &other) const { + return _void_ptr != other._void_ptr; +} + diff --git a/panda/src/express/pointerToVoid.h b/panda/src/express/pointerToVoid.h index 625097b49b..e5c12ab9b6 100644 --- a/panda/src/express/pointerToVoid.h +++ b/panda/src/express/pointerToVoid.h @@ -52,6 +52,9 @@ public: INLINE bool operator < (const void *other) const; INLINE bool operator < (const PointerToVoid &other) const; + INLINE bool operator == (const PointerToVoid &other) const; + INLINE bool operator != (const PointerToVoid &other) const; + protected: // Within the PointerToVoid class, we only store a void pointer. // This is actually the (To *) pointer that is typecast to (void *)