Fix the header being included when trying to specialize std::hash
authorChristopher Dykes <cdykes@fb.com>
Fri, 19 May 2017 23:42:25 +0000 (16:42 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 19 May 2017 23:44:31 +0000 (16:44 -0700)
Summary: `std::hash` lives in `<functional>`, not `<xstddef>`.

Reviewed By: yfeldblum

Differential Revision: D5097468

fbshipit-source-id: d0684491d1d4b0f83f07ad837a66a915ce2ec8a6

folly/portability/PThread.h

index e632458189aa30a6e6d748717abf0e26281483f9..8b2f305113c49d2eba2569fb4706581620ab09e7 100755 (executable)
@@ -112,7 +112,7 @@ inline int pthread_attr_getguardsize(
   return 0;
 }
 
-#include <xstddef>
+#include <functional>
 namespace std {
 template <>
 struct hash<pthread_t> {