Boost logo

Boost :

Subject: Re: [boost] boost::future and exceptions
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-03-10 11:42:53


AMDG

On 03/10/2011 08:24 AM, Andy Venikov wrote:
> 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.

See http://www.boost.org/libs/exception/doc/tutorial_exception_ptr.html

In Christ,
Steven Watanabe


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