
17 Aug
2005
17 Aug
'05
3:53 p.m.
Thorsten Schuett wrote:
On Wednesday 17 August 2005 16:06, Martin Wille wrote:
I think that would be viable. Another approach would be to pass a combiner (similar to what Boost.Signals does) and to use optional<whatever> as return types.
optional<> would be insufficient if we don't have only success/failure but some quality indicator. We could return a result if one of the futures returns a result with quality == "best". Otherwise, we have to wait until all the futures involved have returned a result. (Something like that would be useful for running several heuristic algorithms in parallel with a suitable definition of "best") Regards, m Send instant messages to your online friends http://au.messenger.yahoo.com