
16 Jun
2009
16 Jun
'09
10:39 p.m.
AMDG KessiMC wrote:
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?
constructor must be used with bind. lambda::throw_exception(lambda::bind( lambda::constructor<InterfaceTimeoutException>()))(); In Christ, Steven Watanabe