X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Fexecutors%2Ftest%2FAsyncTest.cpp;h=c1c87d46342c03db6b4aeae8219ec1c7d75be157;hb=5bb0e1da38dd1c5c9ef4619da8aad99ccfd30cf2;hp=4a7f0cf007979b0436eff22f5ba15ce0166cf4db;hpb=a9ade34fda9818c12b6aa0a187f1d6d0988ee905;p=folly.git diff --git a/folly/executors/test/AsyncTest.cpp b/folly/executors/test/AsyncTest.cpp index 4a7f0cf0..c1c87d46 100644 --- a/folly/executors/test/AsyncTest.cpp +++ b/folly/executors/test/AsyncTest.cpp @@ -18,6 +18,8 @@ #include #include +#include + using namespace folly; TEST(AsyncFunc, manual_executor) { @@ -45,7 +47,7 @@ TEST(AsyncFunc, void_lambda) { } TEST(AsyncFunc, moveonly_lambda) { - auto lambda = [] { return std::unique_ptr(new int(42)); }; + auto lambda = [] { return std::make_unique(42); }; auto future = async(lambda); EXPECT_EQ(42, *future.get()); }