From 1805a4ec8ab03f5335f6a65a1acfb58b0a24c849 Mon Sep 17 00:00:00 2001 From: Martin Ankerl Date: Tue, 18 Feb 2020 17:33:04 +0100 Subject: [PATCH] fixes #59, template argument for unordered_set A copy & paste error --- src/include/robin_hood.h | 8 ++++---- src/test/unit/bench_quick_overall_set.cpp | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/include/robin_hood.h b/src/include/robin_hood.h index 4e7e5f05..76de3010 100644 --- a/src/include/robin_hood.h +++ b/src/include/robin_hood.h @@ -6,7 +6,7 @@ // _/_____/ // // Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20 -// version 3.5.0 +// version 3.5.1 // https://github.com/martinus/robin-hood-hashing // // Licensed under the MIT License . @@ -37,7 +37,7 @@ // see https://semver.org/ #define ROBIN_HOOD_VERSION_MAJOR 3 // for incompatible API changes #define ROBIN_HOOD_VERSION_MINOR 5 // for adding functionality in a backwards-compatible manner -#define ROBIN_HOOD_VERSION_PATCH 0 // for backwards-compatible bug fixes +#define ROBIN_HOOD_VERSION_PATCH 1 // for backwards-compatible bug fixes #include #include @@ -2172,8 +2172,8 @@ template , typename KeyEqual = std::equa size_t MaxLoadFactor100 = 80> using unordered_node_set = detail::Table; -template , - typename KeyEqual = std::equal_to, size_t MaxLoadFactor100 = 80> +template , typename KeyEqual = std::equal_to, + size_t MaxLoadFactor100 = 80> using unordered_set = detail::Table::value && std::is_nothrow_move_assignable::value, diff --git a/src/test/unit/bench_quick_overall_set.cpp b/src/test/unit/bench_quick_overall_set.cpp index 2083b6b0..648bd342 100644 --- a/src/test/unit/bench_quick_overall_set.cpp +++ b/src/test/unit/bench_quick_overall_set.cpp @@ -169,6 +169,7 @@ TEST_CASE("bench_quick_overall_set_flat" * doctest::test_suite("bench") * doctes ankerl::nanobench::Config cfg; benchAll>(&cfg); benchAll>(&cfg); + benchAll>(&cfg); std::cout << geomean1(cfg) << std::endl; #ifdef ROBIN_HOOD_COUNT_ENABLED