shared pointer comparisons with other pointers
Former-commit-id: d5ede50b040c82e02eb2b82982091bdd0fb7da12
This commit is contained in:
parent
1d8ecd93de
commit
16fd1ed48e
10
src/server.h
10
src/server.h
@ -210,11 +210,21 @@ public:
|
|||||||
return m_ptr == other.m_ptr;
|
return m_ptr == other.m_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator==(const void *p) const
|
||||||
|
{
|
||||||
|
return m_ptr == p;
|
||||||
|
}
|
||||||
|
|
||||||
bool operator!=(const robj_sharedptr &other) const
|
bool operator!=(const robj_sharedptr &other) const
|
||||||
{
|
{
|
||||||
return m_ptr != other.m_ptr;
|
return m_ptr != other.m_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator!=(const void *p) const
|
||||||
|
{
|
||||||
|
return m_ptr != p;
|
||||||
|
}
|
||||||
|
|
||||||
redisObject* operator->() const
|
redisObject* operator->() const
|
||||||
{
|
{
|
||||||
return m_ptr;
|
return m_ptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user