Fix test/FunctionTest.cpp build breaks
authorBen Hamilton <beng@fb.com>
Sat, 28 May 2016 00:00:50 +0000 (17:00 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Sat, 28 May 2016 00:08:32 +0000 (17:08 -0700)
commitf70249c03acbf2e0d4449d6e74b8ab6cae206b28
tree9d460207b5db6c887b8f63832a6bf04bb6460ae1
parentca729c2e59c57415e5a8e1b69bb82060f40998b2
Fix test/FunctionTest.cpp build breaks

Summary:
The Folly `make check` build is broken with Clang on OS X.

This diff fixes two breaks in `test/FunctionTest.cpp`:

1. `FunctionTest.cpp:39:20: error: implicit instantiation of undefined template 'std::__1::array<int, 100>'`
2. `FunctionTest.cpp:103:3: error: no matching conversion for functional-style cast from 'Function<int (int)>' to '::testing::AssertionResult'`

The first was a missing `#include <array>`, and the second is a workaround for this gtest bug:
https://github.com/google/googletest/issues/429

Reviewed By: djwatson

Differential Revision: D3361188

fbshipit-source-id: 8140de978a2cbaf0f4aab45781ce0d656f03202b
folly/test/FunctionTest.cpp