|
Boost : |
Subject: Re: [boost] [threadpool] new version v12
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-11-03 08:31:38
Anthony Williams:
> future<T> some_future;
>
> try
> {
> throw my_exception();
> }catch(...)
> {
> some_future.wait(); // may invoke task from pool if some_future
> // not ready
> throw; // oops, where's my exception state gone?
> }
Are you sure that the above doesn't work?
try
{
throw my_exception();
}
catch(...)
{
try
{
call_function_that_throws();
}
catch( ... )
{
}
throw; // works
}
-- Peter Dimov http://www.pdplayer.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk