
3 Nov
2008
3 Nov
'08
1:31 p.m.
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