From: Kefu Chai Date: Tue, 26 Jun 2018 10:47:18 +0000 (+0800) Subject: common/shared_cache: remove less and hash template parameters X-Git-Tag: v14.0.1~972^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1af7b4774f173d47c3483de09518da6cfc6eacb8;p=ceph-ci.git common/shared_cache: remove less and hash template parameters Signed-off-by: Kefu Chai --- diff --git a/src/common/shared_cache.hpp b/src/common/shared_cache.hpp index 59179bfbad1..266a3b9def3 100644 --- a/src/common/shared_cache.hpp +++ b/src/common/shared_cache.hpp @@ -24,7 +24,7 @@ // re-include our assert to clobber the system one; fix dout: #include "include/assert.h" -template , class H = std::hash > +template class SharedLRU { CephContext *cct; typedef std::shared_ptr VPtr; @@ -36,6 +36,8 @@ class SharedLRU { public: int waiting; private: + using C = std::less; + using H = std::hash; ceph::unordered_map >::iterator, H> contents; list > lru;