C++, LHS state after exception is thrown
- by aaa
hi.
I am learning C++ exceptions and I would like some clarification of the scenario:
T function() throws(std::exception);
...
T t = value;
try { t = function(); }
catch (...) {}
if the exception is thrown, what is the state of variable t?
unchanged or undefined?