
On Fri, 16 Mar 2007 08:23:38 +0100, Oliver.Kowalke wrote:
I still believe that futures should be combinable via operator&& and operator|| - for users of the boost::future library is it more intuitive
I'm open to this idea - just waiting for the dust to settle on exactly how it should work. If you make real-life use of these composition operators, you could help with your most complex real-life usage example. braddock
that the resulting future of an future comination contains the result instead of future<bool> and be force to check all related futures for their return status and return value. I would prefer following syntax:
promise< T1 > p1; future< T1 > f1( p1); promise< T2 > p2; future< T2 > f2( p2); promise< T3 > p3; future< T3 > f3( p3);
future< tuple< T1, T2, T3 > f( f1 && f2 && f3); future< variant< T1, T2, T3 > f( f1 || f2 || f3); future< tuple< T1, T2, T3 > f( f1 && f2 && f3); future< variant< tuple< T1, T2>, T3 > f( f1 && f2 || f3);
as Hartmut suggested.
regards, Oliver
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost