Split SemiFuture and Future into separate types. Add BasicFuture shared between them.
[folly.git] / folly / futures / test / SemiFutureTest.cpp
index 1471d42b8a13acc38f65c78bba055aa457e7a564..29afb08f5de3f07778237114cbc5fb74b4f1f272 100644 (file)
@@ -203,7 +203,7 @@ TEST(SemiFuture, MakeFutureFromSemiFutureLValue) {
   Promise<int> p;
   std::atomic<int> result{0};
   auto f = SemiFuture<int>{p.getFuture()};
-  auto future = f.via(&e).then([&](int value) {
+  auto future = std::move(f).via(&e).then([&](int value) {
     result = value;
     return value;
   });