Edits
[iotcloud.git] / version2 / src / C / Pair.h
index 4da3bf7f1a06f605817a043922ab4545b8b3546f..5506eaeccc7acc72f057463ec36cf6177c840c96 100644 (file)
@@ -23,13 +23,13 @@ public:
 };
 
 template<typename A, typename B>
-inline unsigned int pairHashFunction(Pair<A, B> p) {
-       return (p.getFirst() << 1) ^ p.getSecond();
+inline unsigned int pairHashFunction(Pair<A, B> p) {
+       return (p->getFirst() << 1) ^ p->getSecond();
 }
 
 template<typename A, typename B>
-inline bool pairEquals(Pair<A, B> a, Pair<A, B> b) {
-       return ( a.getFirst() == b.getFirst() ) && (a.getSecond() == b.getSecond());
+inline bool pairEquals(Pair<A, B> *a, Pair<A, B> *b) {
+       return (a->getFirst() == b->getFirst() ) && (a->getSecond() == b->getSecond());
 }
 
 inline unsigned int pairHashFunction(Pair<int64_t, int64_t> p) {
@@ -37,6 +37,6 @@ inline unsigned int pairHashFunction(Pair<int64_t, int64_t> p) {
 }
 
 inline bool pairEquals(Pair<int64_t, int64_t> a, Pair<int64_t, int64_t> b) {
-       return ( a.getFirst() == b.getFirst() ) && (a.getSecond() == b.getSecond());
+       return (a.getFirst() == b.getFirst() ) && (a.getSecond() == b.getSecond());
 }
 #endif