Fix compilation warning
authorDaniel Sommermann <dcsommer@fb.com>
Fri, 22 Aug 2014 20:26:52 +0000 (13:26 -0700)
committerSara Golemon <sgolemon@fb.com>
Tue, 9 Sep 2014 21:22:23 +0000 (14:22 -0700)
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

index 109b24e40e5478b1a2954c6b108376a02d76c9b5..0cc326a42bb64da68cf6a97b1427a22b081104b0 100644 (file)
@@ -389,7 +389,7 @@ namespace std {
   // Hash function for pairs. Requires default hash functions for both
   // items in the pair.
   template <typename T1, typename T2>
-  class hash<std::pair<T1, T2> > {
+  struct hash<std::pair<T1, T2> > {
   public:
     size_t operator()(const std::pair<T1, T2>& x) const {
       return folly::hash::hash_combine(x.first, x.second);