Try to fix compilation for gcc 4.6 [3]

This commit is contained in:
Eduardo Bart 2013-03-06 15:45:27 -03:00
parent 392acc0b43
commit 64fc4570c9
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ public:
auto prom = std::make_shared<boost::promise<typename std::result_of<F()>::type>>();
m_tasks.push_back([=]() { prom->set_value(task()); });
m_condition.notify_all();
return prom->get_future().share();
return boost::shared_future<typename std::result_of<F()>::type>(prom->get_future());
}
protected: