diff --git a/src/server.h b/src/server.h index 8870a6a07..a7a1e2adc 100644 --- a/src/server.h +++ b/src/server.h @@ -210,11 +210,21 @@ public: return m_ptr == other.m_ptr; } + bool operator==(const void *p) const + { + return m_ptr == p; + } + bool operator!=(const robj_sharedptr &other) const { return m_ptr != other.m_ptr; } + bool operator!=(const void *p) const + { + return m_ptr != p; + } + redisObject* operator->() const { return m_ptr;