C ++ 0x - 导出已过,异常规范已弃用。这会影响你的代码吗? [英] C++0x - export gone, exception specs deprecated. Will this affect your code?

查看:429
本文介绍了C ++ 0x - 导出已过,异常规范已弃用。这会影响你的代码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是最新的草药关于C ++ 0x标准化过程的Sutter旅行报告表明委员会决定完全删除模板的导出概念,并废除异常规范。

This latest Herb Sutter trip report on the C++0x standardisation process indicates that the committee has decided to completely drop the "export" concept for templates, and to deprecate exception specifications.

我认为这些都是好的举动,但我有兴趣,如果有人有一个代码库,这些更改将导致他们不眠之夜。

I think these are both good moves, but I'm interested if anyone out there has a code base where these changes will cause them sleepless nights?

推荐答案

自cfront 1.0以来,我一直在用C ++编程,我很高兴地说,我从来没有写过一个异常规范或者在我负责的代码中。当他们提出,我打电话给Bjarne Stroustrup在电话上哭了,不要这样做!我给出了为什么他们是一个可怕的想法的所有原因。令我吃惊的是,他说的话,我知道。当我问为什么Hades的功能进入规范时,他说有一个大球员,他的专家坚决要求它必须进入规范或他们绝对不会签署,期间,结束讨论。如果我知道是谁,我已经忘记了。

I've been programming in C++ since cfront 1.0, and I am happy to say I've never written an exception specification or allowed one in code that I was responsible for. When they were proposed, I called Bjarne Stroustrup on the phone and cried, "Don't do it!" I gave all the reasons why they were a horrible idea. To my surprise, he said something like, "I know." When I asked why the feature-from-Hades was going into the spec, he said there was a Big Player whose "experts" resolutely insisted that it had to go into the spec or they would absolutely not sign off, period, end of discussion. If I ever knew who it was, I've forgotten.

我已经弃用了很长时间。 : - )

I've been deprecating a long time. :-)

这篇关于C ++ 0x - 导出已过,异常规范已弃用。这会影响你的代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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