GCC中的C ++ 14支持是实验性的 [英] C++14 support in GCC is experimental

查看:48
本文介绍了GCC中的C ++ 14支持是实验性的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

引用有关C ++ 14的GCC页面

重要提示:由于最终的ISO C ++ 14标准是最近才发布的,因此GCC的支持是实验性.不会尝试与不反映最终标准的C ++ 14功能实现保持向后兼容性.

Important: Because the final ISO C++14 standard was only recently published, GCC's support is experimental. No attempt will be made to maintain backward compatibility with implementations of C++14 features that do not reflect the final standard.

我找不到 experimental 的官方GCC定义.正如最后一句话提到的,它仅适用于非标准功能的向后兼容性吗?还是表明它是否稳定?同一页上的前面一句话说

I could not find the official GCC definition of experimental. Does it only apply to backward compatibility wrt non-standard features, as the last sentence mentions? Or does it also indicate stability, or lack thereof? An earlier sentence on the same page says

C ++ 14功能在GCC的Subversion存储库主干以及GCC 4.8及更高版本中作为主线" GCC编译器的一部分提供.

C++14 features are available as part of the "mainline" GCC compiler in the trunk of GCC's Subversion repository and in GCC 4.8 and later.

对我来说,这表明稳定.是这样吗根据上述页面,我的问题特别是关于GCC 4.9的,因为那是最早的版本,具有完整的C ++ 14支持.

To me, this suggests stability. Is this the case? In particular, my question is about GCC 4.9, since that is the earliest version with full C++14 support, according to the aforementioned page.

推荐答案

没有正式的GCC定义",只有正式的 English 定义.

There is no "official GCC definition", only the official English definition.

这段话意味着,在GCC之前在 C ++ 14发布之前,GCC实施了当时即将推出的C ++ 14功能的实验原型,而以后的版本将不费吹灰之力试图保持与C ++ 14的向后兼容性.这些实验.

The passage means that, where GCC previously implemented experimental prototypes of then-upcoming C++14 features before C++14 was published, future versions will not bother to try to maintain backward compatibility with those experiments.

两个版本之间的向后兼容性仅针对包含在国际标准中的功能进行维护.

Backward compatibility between two versions is only maintained with respect to features that were in an International Standard at the time that they were included in those versions.

这是因为在标准发布之前,新C ++功能的规范可能会发生巨大变化.保证支持它们的早期实验与最终发布在标准中的最终真实功能向前兼容是很疯狂的.

This is because, prior to standard publication, the specification of new C++ features can change rather dramatically. It would be madness to guarantee that early experiments in support for them would be forwards compatible with the final, true feature as eventually published in a standard.

简而言之:使用实验性功能需要您自担风险,不要期望它们在下一版GCC中会以相同的方式起作用.

In short: use experimental features at your own risk and do not expect them to work the same way in the next version of GCC.

这篇关于GCC中的C ++ 14支持是实验性的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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