roney

  C++博客 :: 首页 :: 联系 :: 聚合  :: 管理
  0 Posts :: 1 Stories :: 0 Comments :: 0 Trackbacks

常用链接

留言簿

我参与的团队

搜索

  •  

最新评论

A typical unexpected handler logs the error and terminates the program by calling exit(). It can, how ever, throw another exception (or rethrow the same exception) or call abort(). If it throws an exception of a type allowed by the function whose specification was orginally violated, the search resumes at the call of the function with this exception (expected to terminate or throw an specific object. void my_unexpected() throw() { cout << "unexpected exception thrown" << endl; throw 43; } it will cause function loop. this behavior is unique to unexpected().
posted on 2008-01-07 00:38 ron 阅读(11) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航:   博客园   博客园最新博文   博问   管理