summaryrefslogtreecommitdiff
path: root/boost/thread/executors/executor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/thread/executors/executor.hpp')
-rw-r--r--boost/thread/executors/executor.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/boost/thread/executors/executor.hpp b/boost/thread/executors/executor.hpp
index 1075bce733..96198201f0 100644
--- a/boost/thread/executors/executor.hpp
+++ b/boost/thread/executors/executor.hpp
@@ -99,9 +99,10 @@ namespace boost
}
template <typename Closure>
- void submit(BOOST_THREAD_RV_REF(Closure) closure)
+ void submit(BOOST_THREAD_FWD_REF(Closure) closure)
{
- work w = boost::move(closure);
+ //submit(work(boost::forward<Closure>(closure)));
+ work w((boost::forward<Closure>(closure)));
submit(boost::move(w));
}