martinus / unordered_dense

A fast & densely stored hashmap and hashset based on robin-hood backward shift deletion
MIT License
898 stars 72 forks source link

fix #79: don't reuse m_buckets when allocator does not compare equal #80

Closed martinus closed 1 year ago

martinus commented 1 year ago

m_buckets can only be reused when the allocators are equal. Otherwise we would deallocate with m_buckets with the incorrect allocator.

Also bumped the version for the fix.