What does the standard say about this?
During the actual throw/catch process itself, is it guaranteed that the lifetime of the temporary A() object will be at least as long as the lifetime of the Exception object? Or is this undefined?Code:class A {};
class Exception
{
public:
Exception( const A &a )
: value( a )
{}
const A &value;
};
void SomeCode()
{
throw Exception( A() );
}