
17 Apr
2009
17 Apr
'09
3:08 p.m.
Stefan Seefeld wrote:
Alexander Terekhov wrote:
Two-phase EH.
An implementation strategy used by some compilers. It is not something required by C++. It is mysterious why some popular compilers insist on using that strategy when they know they are dealing with C++ applications.
Because that strategy allows to not unwind the stack for unexpected exceptions.
Can you elaborate on that a little ?
Sorry for jumping in. I think he meant unhandled, or uncaught exception, see 15.3/9 and 15.5.1/2: "If no matching handler is found in a program, the function terminate() is called; whether or not the stack is unwound before this call to terminate() is implementation-defined (15.5.1)."