Boost logo

Boost :

From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2008-05-30 05:54:59

Hi all,

I've updated my futures library to include wait_for_any() and

The provided overloads allow either waiting on up to five futures
known at compile time:

unique_future<int> f1;
shared_future<std::string> f2;
unique_future<double> f3;
unsigned const ready_index=wait_for_any(future1,future2,future3);

or on a container of futures:

std::vector<jss::shared_future<int> > futures;
std::vector<jss::shared_future<int> >::iterator const future=

In the first instance, they can be of distinct types, but in the
latter, all the futures in the container must be of the same type.

The documentation is available at
and the files and tests are available at


Anthony Williams            | Just Software Solutions Ltd
Custom Software Development |
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

Boost list run by bdawes at, gregod at, cpdaniel at, john at