$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] boost::future and exceptions
From: Andy Venikov (avenikov_at_[hidden])
Date: 2011-03-10 11:24:01
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?