fbstring: Fix std::hash specializations for non-char types
[folly.git] / folly / FBString.h
index 0c8273e5a19371b7f5db198e478ef45a31e53246..9a50e29958d27496fd49fa19530c029d44e3aced 100644 (file)
@@ -2441,7 +2441,7 @@ _GLIBCXX_END_NAMESPACE_VERSION
 #define FOLLY_FBSTRING_HASH1(T) \
   template <> \
   struct hash< ::folly::basic_fbstring<T> > { \
-    size_t operator()(const ::folly::fbstring& s) const { \
+    size_t operator()(const ::folly::basic_fbstring<T>& s) const { \
       return ::folly::hash::fnv32_buf(s.data(), s.size()); \
     } \
   };