Try to fix compilation for gcc 4.6 [3]
This commit is contained in:
parent
392acc0b43
commit
64fc4570c9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue