
5 Jan
2009
5 Jan
'09
5:06 p.m.
----- Original Message ----- From: "Anthony Williams" <anthony.ajw@gmail.com> To: <boost@lists.boost.org> Sent: Monday, January 05, 2009 12:55 PM Subject: Re: [boost] [Reviews] Futures - packaged_task and shared_future
"vicente.botet" <vicente.botet@wanadoo.fr> writes:
can you consider the ability of a shared_packaged_task to return a shared_future?
You can move a unique_future<T> into a shared_future<T>, which can then be stored in a container.
boost::packaged_task<int> pt(some_func); boost::shared_future<int> f=pt.get_future(); // move-assign
Excelent. I like this integration. Vicente