Commit 8a710957 authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Fix building F14SetTest on platforms where std::array iterators are not just raw char*'s

Summary: Platforms such as MSVC.

Reviewed By: yfeldblum

Differential Revision: D9569093

fbshipit-source-id: 3d836d5f660b610eed47a6692bc0ce33396fbfa5
parent ad2a21fb
...@@ -1099,7 +1099,8 @@ namespace { ...@@ -1099,7 +1099,8 @@ namespace {
struct CharArrayHasher { struct CharArrayHasher {
template <std::size_t N> template <std::size_t N>
std::size_t operator()(std::array<char, N> const& value) const { std::size_t operator()(std::array<char, N> const& value) const {
return folly::Hash{}(StringPiece{value.begin(), value.end()}); return folly::Hash{}(
StringPiece{value.data(), &value.data()[value.size()]});
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment