tentative fix for issue #117

This commit is contained in:
greg
2021-11-18 20:41:45 -05:00
parent 07b740bd99
commit b0ac9ef70a
2 changed files with 21 additions and 20 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ bool raw_hash_set<Policy, Hash, Eq, Alloc>::load(InputArchive& ar) {
}
// allocate memory for ctrl_ and slots_
initialize_slots();
initialize_slots(capacity_);
if (!ar.load(reinterpret_cast<char*>(ctrl_),
sizeof(ctrl_t) * (capacity_ + Group::kWidth + 1))) {
std::cerr << "Failed to load ctrl" << std::endl;