Remove superfluous std::move
[folly.git] / folly / Hash.h
index a2fb67992bb98fdd59e4da7e0defd8ea7fded5b8..0f0afc5baf71ac4c4ca301becf5f84e98fca6da5 100644 (file)
@@ -361,6 +361,14 @@ struct Hash {
   }
 };
 
+template <>
+struct hasher<bool> {
+  size_t operator()(bool key) const {
+    // Make sure that all the output bits depend on the input.
+    return -static_cast<size_t>(key);
+  }
+};
+
 template<> struct hasher<int32_t> {
   size_t operator()(int32_t key) const {
     return hash::jenkins_rev_mix32(uint32_t(key));