martinus / robin-hood-hashing

Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20
https://gitter.im/martinus/robin-hood-hashing
MIT License
1.5k stars 142 forks source link

terminate called after throwing an instance of 'std::overflow_error' what(): robin_hood::map overflow Aborted (core dumped) #156

Closed mayukhnec closed 1 year ago

mayukhnec commented 1 year ago

I am facing "robin_hood::map overflow" exception with robinhood version 3.5.1 when I run my code on Ubuntu 18.04.5 LTS environment. I even tried using robinhood 3.11.5 latest version. But still the issue is same. error_anyburl

martinus commented 1 year ago

Hi, can you try if it works with ankerl::unordered_dense::map? https://github.com/martinus/unordered_dense

mayukhnec commented 1 year ago

I am facing lot of errors while compiling unordered_dense.h . Please find error file attached error.txt

martinus commented 1 year ago

unordered_dense requires C++17 or higher

mayukhnec commented 1 year ago

tried replacing robin_hood::unordered::map with ankerl::unordered_dense::map . but it is not a drop in replacement for same , we are also using robin_hood::pair and robin_hood::unordered_set .Tried replaceing unordered_set too with ankerl::unordered_dense::set but still facing lot of issues . Is there any other alternative?

martinus commented 1 year ago

What issues are you facing? use the map/set's value_type instead of std::pair / robin_hood::pair so your code works generically.