Summary:
Let's double check that `small_vector` is doing the right thing. So
it doesn't just accidentally work.
Test Plan:
`fbconfig folly/wangle && fbmake runtests`
`fbconfig --clang folly/wangle && fbmake runtests`
Reviewed By: marccelani@fb.com
FB internal diff:
D1231360
/* Ensure that we can compile when_{all,any} with folly::small_vector */
TEST(when, small_vector) {
+
+ static_assert(!FOLLY_IS_TRIVIALLY_COPYABLE(Future<void>),
+ "Futures should not be trivially copyable");
+ static_assert(!FOLLY_IS_TRIVIALLY_COPYABLE(Future<int>),
+ "Futures should not be trivially copyable");
+
using folly::small_vector;
{
small_vector<Future<void>> futures;