Commit 9a5abb71 authored by Daniel Sommermann's avatar Daniel Sommermann Committed by Sara Golemon

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
parent cec3fa89
...@@ -389,7 +389,7 @@ namespace std { ...@@ -389,7 +389,7 @@ namespace std {
// Hash function for pairs. Requires default hash functions for both // Hash function for pairs. Requires default hash functions for both
// items in the pair. // items in the pair.
template <typename T1, typename T2> template <typename T1, typename T2>
class hash<std::pair<T1, T2> > { struct hash<std::pair<T1, T2> > {
public: public:
size_t operator()(const std::pair<T1, T2>& x) const { size_t operator()(const std::pair<T1, T2>& x) const {
return folly::hash::hash_combine(x.first, x.second); return folly::hash::hash_combine(x.first, x.second);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment