mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
Disable assert causing duplicated hash calls when NDEBUG is not defined - issue #168
This commit is contained in:
Vendored
+3
@@ -2218,9 +2218,12 @@ protected:
|
||||
PolicyTraits::construct(&alloc_ref(), slots_ + i,
|
||||
std::forward<Args>(args)...);
|
||||
|
||||
#ifdef PHMAP_CHECK_CONSTRUCTED_VALUE
|
||||
// this check can be costly, so do it only when requested
|
||||
assert(PolicyTraits::apply(FindElement{*this}, *iterator_at(i)) ==
|
||||
iterator_at(i) &&
|
||||
"constructed value does not match the lookup key");
|
||||
#endif
|
||||
}
|
||||
|
||||
iterator iterator_at(size_t i) { return {ctrl_ + i, slots_ + i}; }
|
||||
|
||||
Reference in New Issue
Block a user