Skip to content

Commit

Permalink
BE Missing explicit in KeyHasher and KeyValueEqual constructors
Browse files Browse the repository at this point in the history
Differential Revision: D51938989

fbshipit-source-id: a7f3a4c4f26a708828ea020fc2bc4f9ae36ce6f9
  • Loading branch information
Daniel Rolf authored and facebook-github-bot committed Dec 11, 2023
1 parent 48d6690 commit 72fbaa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions folly/container/EvictingCacheMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class EvictingCacheMap {
using folly_is_avalanching = IsAvalanchingHasher<THash, TKey>;

KeyHasher() : hash() {}
KeyHasher(const THash& keyHash) : hash(keyHash) {}
explicit KeyHasher(const THash& keyHash) : hash(keyHash) {}
std::size_t operator()(const NodePtr& node) const {
return hash(node->pr.first);
}
Expand All @@ -535,7 +535,7 @@ class EvictingCacheMap {
using is_transparent = void;

KeyValueEqual() : equal() {}
KeyValueEqual(const TKeyEqual& keyEqual) : equal(keyEqual) {}
explicit KeyValueEqual(const TKeyEqual& keyEqual) : equal(keyEqual) {}
template <typename K>
bool operator()(const K& lhs, const NodePtr& rhs) const {
return equal(lhs, rhs->pr.first);
Expand Down

0 comments on commit 72fbaa0

Please sign in to comment.