summaryrefslogtreecommitdiff
path: root/src/user/include/cxx/structs/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/include/cxx/structs/map.h')
-rw-r--r--src/user/include/cxx/structs/map.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/user/include/cxx/structs/map.h b/src/user/include/cxx/structs/map.h
index f9c477f..311bfa9 100644
--- a/src/user/include/cxx/structs/map.h
+++ b/src/user/include/cxx/structs/map.h
@@ -3,12 +3,7 @@
#include <structs/alist.h>
-template<class type>
-bool default_equals(type a, type b) {
- return a == b;
-}
-
-template<class key, class value, bool (*equals)(key, key) = &default_equals<key>>
+template<class key, class value, bool (*equals)(key, key) = &key::operator==>
class map {
public:
alist<key> keys;