diff --git a/src/framework/core/asyncdispatcher.h b/src/framework/core/asyncdispatcher.h index 4ebd09eb..9e1bd413 100644 --- a/src/framework/core/asyncdispatcher.h +++ b/src/framework/core/asyncdispatcher.h @@ -40,7 +40,7 @@ public: auto prom = std::make_shared::type>>(); m_tasks.push_back([=]() { prom->set_value(task()); }); m_condition.notify_all(); - return prom->get_future().share(); + return boost::shared_future::type>(prom->get_future()); } protected: