From 9a5abb71489597c37882f04a077880ab598d9cbc Mon Sep 17 00:00:00 2001 From: Daniel Sommermann Date: Fri, 22 Aug 2014 13:26:52 -0700 Subject: [PATCH] Fix compilation warning Summary: Defining hash as a struct and a class was causing some junk to get printed during fbmake. Test Plan: `fbconfig -r proxygen; fbmake dbg`, ran unit tests, didn't see output Reviewed By: njormrod@fb.com Subscribers: doug, shilin, njormrod FB internal diff: D1514793 --- folly/Hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/Hash.h b/folly/Hash.h index 109b24e4..0cc326a4 100644 --- a/folly/Hash.h +++ b/folly/Hash.h @@ -389,7 +389,7 @@ namespace std { // Hash function for pairs. Requires default hash functions for both // items in the pair. template - class hash > { + struct hash > { public: size_t operator()(const std::pair& x) const { return folly::hash::hash_combine(x.first, x.second); -- 2.34.1