diff options
author | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2019-06-17 15:17:47 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2019-06-17 15:17:47 +0000 |
commit | 5ec7f81e6657eb2a45ef428f5b63c20cbf5986b4 (patch) | |
tree | 5021802bd4b6c846a238caa65e6426920880c98d /staging_vespalib/src | |
parent | 427c172017b75d93b7084cf578da940a2acf03da (diff) |
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.
Diffstat (limited to 'staging_vespalib/src')
-rw-r--r-- | staging_vespalib/src/vespa/vespalib/stllike/lrucache_map.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/stllike/lrucache_map.h b/staging_vespalib/src/vespa/vespalib/stllike/lrucache_map.h index 128a7dc9424..07137263cf6 100644 --- a/staging_vespalib/src/vespa/vespalib/stllike/lrucache_map.h +++ b/staging_vespalib/src/vespa/vespalib/stllike/lrucache_map.h @@ -3,6 +3,7 @@ #include <vespa/vespalib/stllike/hashtable.h> #include <vespa/vespalib/stllike/hash_fun.h> +#include <vespa/vespalib/stllike/select.h> #include <vector> namespace vespalib { @@ -29,7 +30,7 @@ struct LruParam { typedef LinkedValue<V> LV; typedef std::pair< K, LV > value_type; - typedef std::_Select1st< value_type > select_key; + typedef vespalib::Select1st< value_type > select_key; typedef K Key; typedef V Value; typedef H Hash; |