life cycle of exception object
Hello everyone,
1.
Suppose I have code like this. According to the standard, the storage of exception object is undefined (could be either on stack or on heap?).
2.
I am wondering what is the life cycle of the exception object which reference variable e binded to? For example, could we bind a global reference to the exception object referred by e? Or doing something on the exception object beyond the bracket?
3.
The life cycle of variable e itself should not beyond the bracket, right?
Code:
catch (exception& e)
{
// ...
}
thanks in advance,
George