aboutsummaryrefslogtreecommitdiff
path: root/src/ptr_set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ptr_set.cpp')
-rw-r--r--src/ptr_set.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ptr_set.cpp b/src/ptr_set.cpp
index 303bde07e..9b8b678f8 100644
--- a/src/ptr_set.cpp
+++ b/src/ptr_set.cpp
@@ -1,5 +1,7 @@
template <typename T>
struct PtrSetEntry {
+ static_assert(sizeof(T) == sizeof(void *), "Key size must be pointer size");
+
T ptr;
MapIndex next;
@@ -10,6 +12,7 @@ struct PtrSetEntry {
template <typename T>
struct PtrSet {
+
Slice<MapIndex> hashes;
Array<PtrSetEntry<T>> entries;
};