aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/include/G3D/Table.h
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-09-03 15:51:34 +0100
committerNay <dnpd.dd@gmail.com>2012-09-03 15:51:34 +0100
commitc7fed98b9ddef32b7c17d6022435b5bf8c4fa3f5 (patch)
tree3ae3947ff14a14208f6ece4e635f0b5641c8c9d3 /dep/g3dlite/include/G3D/Table.h
parentffe8c75f17aa4c4059771265dd408055cb3c4e52 (diff)
parent0db5573d4de436cf14c9f6d113a28800fa278c2c (diff)
Merge remote-tracking branch 'origin/master' into mmaps
Conflicts: dep/PackageList.txt
Diffstat (limited to 'dep/g3dlite/include/G3D/Table.h')
-rw-r--r--dep/g3dlite/include/G3D/Table.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/dep/g3dlite/include/G3D/Table.h b/dep/g3dlite/include/G3D/Table.h
index 896a5a2a08a..ab0b114b1c4 100644
--- a/dep/g3dlite/include/G3D/Table.h
+++ b/dep/g3dlite/include/G3D/Table.h
@@ -86,12 +86,11 @@ namespace G3D {
<PRE>
template<> struct HashTrait<MyEnum> {
- static size_t equals(const MyEnum& key) const { return reinterpret_cast<size_t>( key ); }
+ static size_t hashCode(const MyEnum& key) const { return reinterpret_cast<size_t>( key ); }
};
</PRE>
- And rely on the default enum operator==.
-
+ and rely on the default enum operator==.
Periodically check that debugGetLoad() is low (> 0.1). When it gets near
1.0 your hash function is badly designed and maps too many inputs to