summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Object.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-12-13 01:26:44 +0000
committerMarc Laukien <marc@zeroc.com>2001-12-13 01:26:44 +0000
commitd4a6568afbb9e923c23fcfd173bceb09a1dec158 (patch)
treee33516c3c57906bd47fcc409a98f58b49c3b5066 /cpp/src/Ice/Object.cpp
parentbug fixes (diff)
downloadice-d4a6568afbb9e923c23fcfd173bceb09a1dec158.tar.bz2
ice-d4a6568afbb9e923c23fcfd173bceb09a1dec158.tar.xz
ice-d4a6568afbb9e923c23fcfd173bceb09a1dec158.zip
comparison operators; started with Connection
Diffstat (limited to 'cpp/src/Ice/Object.cpp')
-rw-r--r--cpp/src/Ice/Object.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/Ice/Object.cpp b/cpp/src/Ice/Object.cpp
index 4bdb69d73ab..4758a174bd7 100644
--- a/cpp/src/Ice/Object.cpp
+++ b/cpp/src/Ice/Object.cpp
@@ -41,6 +41,12 @@ Ice::Object::operator==(const Object& r) const
}
bool
+Ice::Object::operator!=(const Object& r) const
+{
+ return this != &r;
+}
+
+bool
Ice::Object::operator<(const Object& r) const
{
return this < &r;
@@ -49,7 +55,7 @@ Ice::Object::operator<(const Object& r) const
Int
Ice::Object::ice_hash() const
{
- return reinterpret_cast<Int>(this);
+ return reinterpret_cast<Int>(this) >> 4;
}
const string Ice::Object::__classIds[] =