三叉仍然有效C ++? [英] Are trigraphs still valid C++?

查看:153
本文介绍了三叉仍然有效C ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们都知道历史好奇心二合字母和三字母,但是所有的变化对C ++在最近几年我很好奇:他们是有效的C ++ 14?

We all know about the historical curiosity that is digraphs and trigraphs, but with all the changes made to C++ in recent years I'm curious: are they valid C++14? How about C++17?

推荐答案

Trigraphs目前有效,但不会太长!

Trigraphs are currently valid, but won't be for long!


Trigraphs被提议在C ++ 0x中弃用,它被作为C ++ 11发布为
。这是IBM的反对,代表自己和
的其他用户的C ++,结果三字母保留在
C ++ 0x。然后在C ++ 17中再次建议删除(不仅仅是
弃用)。这通过了委员会投票,尽管有来自IBM
和其他人的反对, trigraphs
预计将从C ++ 17中删除
。使用三字母的现有代码可以通过
从物理源文件(解析三字母)转换为不包括三字母的基本源字符集
来支持。 [维基百科]

Trigraphs were proposed for deprecation in C++0x, which was released as C++11. This was opposed by IBM, speaking on behalf of itself and other users of C++, and as a result trigraphs were retained in C++0x. Trigraphs were then proposed again for removal (not only deprecation) in C++17. This passed a committee vote, and trigraphs are expected to be removed from C++17 despite the opposition from IBM and others. Existing code that uses trigraphs can be supported by translating from the physical source files (parsing trigraphs) to the basic source character set that does not include trigraphs. [Wikipedia]

但是,现在仍在使用

这篇关于三叉仍然有效C ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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