projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
prepare for folly::Executor taking folly::Function
[folly.git]
/
folly
/
test
/
SingletonTest.cpp
diff --git
a/folly/test/SingletonTest.cpp
b/folly/test/SingletonTest.cpp
index a5a1cd78fabdcb8eda537ed152dda64d992cb055..42d5bf7d697286aec8d180b70f814f335c04d5c1 100644
(file)
--- a/
folly/test/SingletonTest.cpp
+++ b/
folly/test/SingletonTest.cpp
@@
-495,7
+495,7
@@
class TestEagerInitParallelExecutor : public folly::Executor {
virtual void add(folly::Func func) override {
const auto index = (counter_ ++) % eventBases_.size();
- eventBases_[index]->add(
func
);
+ eventBases_[index]->add(
std::move(func)
);
}
private: