- Fix for compiler error regarding overloaded binary equality operator not defined...
authorJoseph Gilbert <ascotan@gmail.com>
Tue, 13 Apr 2004 02:14:05 +0000 (02:14 +0000)
committerJoseph Gilbert <ascotan@gmail.com>
Tue, 13 Apr 2004 02:14:05 +0000 (02:14 +0000)
source/kernel/gen_system/GEN_Map.h

index a01d6c3f6be1314e8bcdaef3197f1684c339fd64..d71ae84ec642a1ae09b8045d7deba6b0f317a53b 100644 (file)
@@ -106,7 +106,7 @@ public:
     
     void insert(const Key& key, const Value& value) {
         Entry *entry_ptr = m_buckets[key.hash() % m_num_buckets];
-        while ((entry_ptr != 0) && !(key == entry_ptr->m_key)) {
+        while ((entry_ptr != 0) && !(&key == &entry_ptr->m_key)) {
             entry_ptr = entry_ptr->m_next;
         }
         
@@ -134,7 +134,7 @@ public:
 
     Value *operator[](Key key) {
         Entry *bucket = m_buckets[key.hash() % m_num_buckets];
-        while ((bucket != 0) && !(key == bucket->m_key)) {
+        while ((bucket != 0) && !(&key == &bucket->m_key)) {
             bucket = bucket->m_next;
         }
         return bucket != 0 ? &bucket->m_value : 0;