
10 Mar
2011
10 Mar
'11
4:24 p.m.
What's the proper way to make sure user-created exceptions are propagated between threads? When a user exception is thrown from packaged_task, future.get() throws "boost::unknown_exception". I understand that without a language support it's impossible to propagate the exception correctly, but I couldn't find any documentation that describes proper steps. I tried deriving my_exception from std::exception - didn't help. Thanks, Andy. P.S. There's no boost::async() equivalent to std::async(), is there?