diff options
author | Marc Laukien <marc@zeroc.com> | 2001-12-13 01:26:44 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-12-13 01:26:44 +0000 |
commit | d4a6568afbb9e923c23fcfd173bceb09a1dec158 (patch) | |
tree | e33516c3c57906bd47fcc409a98f58b49c3b5066 /cpp/src/Ice/Object.cpp | |
parent | bug fixes (diff) | |
download | ice-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.cpp | 8 |
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[] = |