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

Make initializer list construction explicit

Summary: MSVC wasn't treating this as an initializer list construction, so make it do so.

Reviewed By: yfeldblum

Differential Revision: D9565470

fbshipit-source-id: 15465b5c87a427920a7cad3f5204bb661ba230c2
parent 98d33585
...@@ -868,8 +868,8 @@ void testExchange() { ...@@ -868,8 +868,8 @@ void testExchange() {
folly::Synchronized<std::vector<int>, Mutex> v(input); folly::Synchronized<std::vector<int>, Mutex> v(input);
std::vector<int> next = {4, 5, 6}; std::vector<int> next = {4, 5, 6};
auto prev = v.exchange(std::move(next)); auto prev = v.exchange(std::move(next));
EXPECT_EQ((std::vector<int>{1, 2, 3}), prev); EXPECT_EQ((std::vector<int>{{1, 2, 3}}), prev);
EXPECT_EQ((std::vector<int>{4, 5, 6}), v.copy()); EXPECT_EQ((std::vector<int>{{4, 5, 6}}), v.copy());
} }
} // namespace sync_tests } // namespace sync_tests
} // namespace folly } // namespace folly
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