How does throwing and catching exceptions differ from using setjmp and longjmp?

Q

How does throwing and catching exceptions differ from using setjmp and longjmp?

✍: Guest

A

The throw operation calls the destructors for automatic objects instantiated since entry to the try block.

2012-03-15, 2775👍, 0💬