Boost logo

Boost Users :

Subject: [Boost-users] lambda::throw_exception fails
From: KessiMC (pascal_kesseli_at_[hidden])
Date: 2009-06-16 17:24:59


Hi everyone

Be it that this code is working:

try {
    throw InterfaceTimeoutException();
} catch (const std::exception &ex) {
    cout << ex.what() << endl;
}

However, trying this:

try {
    lambda::throw_exception(constructor<InterfaceTimeoutException> ())();
} catch (const std::exception &ex) {
    cout << ex.what() << endl;
}

ends up with my programm crashing (Exit code 3).

What am I missing here?

Thanks for any reply and best regards
Pascal

-- 
View this message in context: http://www.nabble.com/lambda%3A%3Athrow_exception-fails-tp24063172p24063172.html
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