
Frank Mori Hess <frank.hess@nist.gov> writes:
1) In order to wait on an arbitrary number of futures, determined at runtime, we need some kind of container.
2) Since containers are homogeneous, that means some kind of type erasure (future<void>).
I don't think that waiting for any of a dynamic set of futures of different types is common. My new wait_for_any implementation allows waiting for one of a container of identical futures, or one of a compile-time set of futures of heterogeneous types. I think that should cover most real uses. Anthony -- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL