projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Split SemiFuture and Future into separate types. Add BasicFuture shared between them.
[folly.git]
/
folly
/
futures
/
test
/
SemiFutureTest.cpp
diff --git
a/folly/futures/test/SemiFutureTest.cpp
b/folly/futures/test/SemiFutureTest.cpp
index 1471d42b8a13acc38f65c78bba055aa457e7a564..29afb08f5de3f07778237114cbc5fb74b4f1f272 100644
(file)
--- a/
folly/futures/test/SemiFutureTest.cpp
+++ b/
folly/futures/test/SemiFutureTest.cpp
@@
-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;
});