Make XORFastHash's number of hashable elements compile time constant

Still constraint by the usage of uint32_t and subsequent splitting into
two uint16_t we use for indexing into the tables.
This commit is contained in:
Daniel J. Hofmann
2016-01-21 19:17:02 +01:00
parent 1417d43430
commit a6e7954128
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -1096,7 +1096,7 @@ class GraphContractor
// self-loops are added.
std::vector<EdgeWeight> node_weights;
std::vector<bool> is_core_node;
util::XORFastHash fast_hash;
util::XORFastHash<> fast_hash;
};
}
}