summaryrefslogtreecommitdiff
path: root/include/class.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/class.h')
-rw-r--r--include/class.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/class.h b/include/class.h
index eabcec6..427aa64 100644
--- a/include/class.h
+++ b/include/class.h
@@ -197,7 +197,11 @@ private:
T *t2 = (T *)object2;
// compare the two objects
- return t1->__compare(*t2);
+ if (*t1 < *t2) return -1;
+ if (*t1 > *t2) return 1;
+
+ // they must be identical
+ return 0;
}
/**