diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-07-17 16:43:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-07-17 16:43:47 +0100 |
commit | 969902f04569ab12e69e0d57ef1f6e9f0c42f855 (patch) | |
tree | 2d4ae6f19a613c4327e94da917aa89694dd2ff00 /src/libserver/composites/composites_manager.cxx | |
parent | 93022e6207ed15f8dd231ad43511d7c9e3f2eee8 (diff) | |
download | rspamd-969902f04569ab12e69e0d57ef1f6e9f0c42f855.tar.gz rspamd-969902f04569ab12e69e0d57ef1f6e9f0c42f855.zip |
[Rework] Use another version of hash table from the same author
Diffstat (limited to 'src/libserver/composites/composites_manager.cxx')
-rw-r--r-- | src/libserver/composites/composites_manager.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/composites/composites_manager.cxx b/src/libserver/composites/composites_manager.cxx index bf56fe675..27fb170b9 100644 --- a/src/libserver/composites/composites_manager.cxx +++ b/src/libserver/composites/composites_manager.cxx @@ -17,7 +17,7 @@ #include <memory> #include <vector> #include <cmath> -#include "contrib/robin-hood/robin_hood.h" +#include "contrib/ankerl/unordered_dense.h" #include "composites.h" #include "composites_internal.hxx" @@ -29,7 +29,7 @@ namespace rspamd::composites { static auto composite_policy_from_str(const std::string_view &inp) -> enum rspamd_composite_policy { - const static robin_hood::unordered_flat_map<std::string_view, + const static ankerl::unordered_dense::map<std::string_view, enum rspamd_composite_policy> names{ {"remove", rspamd_composite_policy::RSPAMD_COMPOSITE_POLICY_REMOVE_ALL}, {"remove_all", rspamd_composite_policy::RSPAMD_COMPOSITE_POLICY_REMOVE_ALL}, |