From: Christopher Dykes Date: Thu, 11 Aug 2016 19:43:44 +0000 (-0700) Subject: Eliminate accidental trigraph in FBString X-Git-Tag: v2016.08.15.00~12 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7ad2c91997fe026fb9733f83720949bff5a7f57f;p=folly.git Eliminate accidental trigraph in FBString 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 --- diff --git a/folly/FBString.h b/folly/FBString.h index 077d1be9..8d6f19c2 100644 --- a/folly/FBString.h +++ b/folly/FBString.h @@ -2441,7 +2441,7 @@ _GLIBCXX_END_NAMESPACE_VERSION #define FOLLY_FBSTRING_HASH1(T) \ template <> \ - struct hash<::folly::basic_fbstring> { \ + struct hash< ::folly::basic_fbstring> { \ size_t operator()(const ::folly::basic_fbstring& s) const { \ return ::folly::hash::fnv32_buf(s.data(), s.size() * sizeof(T)); \ } \