Boost logo

Boost Users :

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.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net