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.52k stars 146 forks source link

Add C++11 compatibility #33

Closed cloudhan closed 5 years ago

cloudhan commented 5 years ago

Partially Implemented #32 (I don't think support C++03 is possible without a rewrite).

Built with GCC-5/8, C++11/14 Built with VS2019 C++11/14

cloudhan commented 5 years ago

Please note, with VS2019 C++11, there is something weird with the rh executable, only a few test cases are listed here:

> .\rh.exe -ltc
[doctest] listing all test case names
===============================================================================
move to moved<robin_hood::unordered_node_map<int, int>>
move to moved<robin_hood::unordered_flat_map<int, int>>
swapempty<robin_hood::unordered_node_map<int, int>>
swapempty<robin_hood::unordered_flat_map<int, int>>
clz
copyassignment
include only
pair trivially copy/destructible
rng_is_deterministic
===============================================================================
[doctest] unskipped test cases passing the current filters: 9
martinus commented 5 years ago

VS2019 C++11 compile issue is fixed with latest doctest 2.3.3 commit https://github.com/martinus/robin-hood-hashing/commit/3650895d149341d690826044cfebe8a6a410e56b