Boost logo

Boost :

From: Oliver.Kowalke_at_[hidden]
Date: 2007-03-14 08:35:08


 
> On Wed, 14 Mar 2007 07:43:47 -0400, Braddock Gaskill wrote:
> > And example of an unintrusive operator||() is below.
> > template<typename T>
> > future<T> operator||(future<T> &a, future<T> &b) {
> > future_or<T> fa(a, b);
> > a.add_callback(fa);
> > return fa.p_;
> > }
>
> Minor bug in the code I just posted, I left out
> b.add_callback(fa) in here.
>
> Are there any thoughts on how && and || operators should
> properly handle exceptions?

How to handle future< int > && future< std::string > && future< my_class
>?
Should promise contain a tuple (fusion container?) for the result types?

Oliver


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk