Eliminate accidental trigraph in FBString
authorChristopher Dykes <cdykes@fb.com>
Thu, 11 Aug 2016 19:43:44 +0000 (12:43 -0700)
committerFacebook Github Bot 3 <facebook-github-bot-3-bot@fb.com>
Thu, 11 Aug 2016 19:53:25 +0000 (12:53 -0700)
Summary: `<::` is a trigraph, which, although removed in C++17, MSVC still warns about the sequences (although it doesn't actually intepret them as trigraphs)

Reviewed By: yfeldblum

Differential Revision: D3704382

fbshipit-source-id: b093f854343db01bc166b1cc44763676fdd97a51

folly/FBString.h

index 077d1be934c533c499585705c3a7bb5528afa979..8d6f19c2b6c6761b358439182de3988cf4d19e8b 100644 (file)
@@ -2441,7 +2441,7 @@ _GLIBCXX_END_NAMESPACE_VERSION
 
 #define FOLLY_FBSTRING_HASH1(T)                                        \
   template <>                                                          \
-  struct hash<::folly::basic_fbstring<T>> {                            \
+  struct hash< ::folly::basic_fbstring<T>> {                            \
     size_t operator()(const ::folly::basic_fbstring<T>& s) const {     \
       return ::folly::hash::fnv32_buf(s.data(), s.size() * sizeof(T)); \
     }                                                                  \