$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: af001 (fanzigui_at_[hidden])
Date: 2007-06-28 04:41:27
#include <boost/thread/thread.hpp>
#include <iostream>
#include <exception>
void helloworld()
{
std::cout << "Hello World!" << std::endl;
throw(std::string("err"));
}
int main()
{
try
{
boost::thread thrd(&helloworld);
thrd.join();
}
catch(...)
{
std::cout<<"err";
}
}
-- View this message in context: http://www.nabble.com/Why-can%27t-I-catch-this-exception-in-boost%3A%3Athread--tf3992963.html#a11338618 Sent from the Boost - Users mailing list archive at Nabble.com.