异常规范 [英] Exception Specification

查看:186
本文介绍了异常规范的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个功能将在C ++ 0x中被弃用,但对于我来说,作为一个总的新手,它似乎是一个好主意。有人可以向我解释为什么不是一个好主意?

解决方案

请参阅Herb Sutter的详细文章。他对设计的问题和缺点进行了最全面的解释。



实际看看异常细节




I know that this feature will be deprecated in C++0x, but for me as a total novice it seems like a good idea to have it. Could anyone explain to me why isn't a good idea?

解决方案

Please see this detailed article by Herb Sutter. He has the most thorough explanation of the problems and short comings of their design.

A Pragmatic Look at Exception Specificiations

这篇关于异常规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆