Originally posted by stober
If the Registry class shown below throws an exception, I get Windows error "Unhandled Exception.". I though my catch block would get executed.
from the c++ standard, 15.1 (Throwing an exception):

  • 6. A throw-expression with no operand rethrows the exception being handled. The exception is reactivated with the existing temporary; no new temporary exception object is created. The exception is no longer considered to be caught; therefore, the value of uncaught_exception() will again be true.

    8. If no exception is presently being handled, executing a throw-expression with no operand calls terminate()


so apparently you were wrong.