shared pointer comparisons with other pointers

Former-commit-id: d5ede50b040c82e02eb2b82982091bdd0fb7da12
This commit is contained in:
John Sully 2020-04-24 22:20:26 -04:00
parent 1d8ecd93de
commit 16fd1ed48e

View File

@ -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;