From: Daniel Sommermann Date: Fri, 22 Aug 2014 20:26:52 +0000 (-0700) Subject: Fix compilation warning X-Git-Tag: v0.22.0~384 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9a5abb71489597c37882f04a077880ab598d9cbc;p=folly.git 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 --- 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);