When we go out of catch block scope, does the exception destructor get called? (In case we don't rethrow it)
Suppose I have class A, and that its destructor is not virtual. B inherits A. Suppose some function threw object of B class as an exception, and it was caught by a catch block
catch(A& a){
...
}
If the exception destructor should be called when go out of catch scope, in this case only the base class A's destructor will be called?
Cornstalks: live trial result in calling both class destructor.
It contradicts my logic. Explain someone?