From 5ec7f81e6657eb2a45ef428f5b63c20cbf5986b4 Mon Sep 17 00:00:00 2001 From: Tor Brede Vekterli Date: Mon, 17 Jun 2019 15:17:47 +0000 Subject: Replace GCC-only `std::_Identity` and `std::_Select1st` with own code Put in `stllike` submodule since it's technically hoisted from _a_ STL implementation...! `vespalib::Identity` can be replaced with `std::identity` once on a C++20 compiler. --- vespalib/src/tests/stllike/hashtable_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vespalib/src/tests/stllike/hashtable_test.cpp') diff --git a/vespalib/src/tests/stllike/hashtable_test.cpp b/vespalib/src/tests/stllike/hashtable_test.cpp index 4948faf450f..877a5dddcb5 100644 --- a/vespalib/src/tests/stllike/hashtable_test.cpp +++ b/vespalib/src/tests/stllike/hashtable_test.cpp @@ -3,6 +3,7 @@ #include #include +#include #include #include #include @@ -63,7 +64,7 @@ TEST("require that hashtable can store pairs of ") { } template using set_hashtable = - hashtable, std::equal_to, std::_Identity>; + hashtable, std::equal_to, Identity>; TEST("require that hashtable can be copied") { set_hashtable table(100); -- cgit v1.2.3