diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-02-26 22:13:40 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-02-26 22:13:40 +0100 |
commit | 60611073591d168fff33c8416958678c23b9ff32 (patch) | |
tree | 9837ac3aff3142d07905d3b8ed8d8014fc8f7192 /staging_vespalib | |
parent | e5f4e91644625fa092e2f74c57faa740adbc8f62 (diff) |
Stop using std::binary_function (staging_vespalib).
Diffstat (limited to 'staging_vespalib')
-rw-r--r-- | staging_vespalib/src/tests/stllike/lrucache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/staging_vespalib/src/tests/stllike/lrucache.cpp b/staging_vespalib/src/tests/stllike/lrucache.cpp index a23fec26448..2cc6f2b4ee8 100644 --- a/staging_vespalib/src/tests/stllike/lrucache.cpp +++ b/staging_vespalib/src/tests/stllike/lrucache.cpp @@ -90,7 +90,7 @@ TEST("testCache") { typedef std::shared_ptr<std::string> MyKey; typedef std::shared_ptr<std::string> MyData; -struct SharedEqual : public std::binary_function<MyKey, MyKey, bool> { +struct SharedEqual { bool operator()(const MyKey & a, const MyKey & b) { return ((*a) == (*b)); } |