Commit d4738210 authored by Hannes Roth's avatar Hannes Roth Committed by Dave Watson

(Wangle) Sanity check for the small_vector test

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
parent 7697ddef
......@@ -520,6 +520,12 @@ TEST(when, whenN) {
/* 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;
......
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