diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-03 02:17:19 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-03 02:17:19 +0000 |
commit | c28edba4703dc44ae8f2b3e96fd3aa7b6622cca1 (patch) | |
tree | 554d7e973045930780298fdc8239acfeb30a7d93 | |
parent | Remove unrequired link to boost_random (diff) | |
download | netfs-c28edba4703dc44ae8f2b3e96fd3aa7b6622cca1.tar.bz2 netfs-c28edba4703dc44ae8f2b3e96fd3aa7b6622cca1.tar.xz netfs-c28edba4703dc44ae8f2b3e96fd3aa7b6622cca1.zip |
Specialised comparator in EntCache
-rw-r--r-- | netfs/lib/entCache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netfs/lib/entCache.h b/netfs/lib/entCache.h index cbf5894..4c34a32 100644 --- a/netfs/lib/entCache.h +++ b/netfs/lib/entCache.h @@ -51,9 +51,9 @@ class EntCache : public EntryResolver<decltype(entry_t::id)> { typedef boost::multi_index::multi_index_container<std::shared_ptr<entry_t>, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< - boost::multi_index::tag<id_t>, BOOST_MULTI_INDEX_MEMBER(entry_t, const id_t, id)>, + boost::multi_index::tag<id_t>, BOOST_MULTI_INDEX_MEMBER(entry_t, const id_t, id), std::less<>>, boost::multi_index::ordered_unique< - boost::multi_index::tag<std::string>, BOOST_MULTI_INDEX_MEMBER(entry_t, const std::string, name)> + boost::multi_index::tag<std::string>, BOOST_MULTI_INDEX_MEMBER(entry_t, const std::string, name), std::less<>> > > IDs; mutable IDs idcache; mutable std::shared_mutex lock; |