任何c编译器是否实现了任何C1X功能?

前端之家收集整理的这篇文章主要介绍了任何c编译器是否实现了任何C1X功能?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
任何c编译器是否实现了任何C1X功能

P.S .:有一种方法可以模拟当前c编译器中的一些功能

解决方法

GCC 4.6对C1X功能有一些实验支持

There is now experimental support for some features from the upcoming C1X revision of the ISO C standard. This support may be selected with -std=c1x,or -std=gnu1x for C1X with GNU extensions. Note that this support is experimental and may change incompatibly in future releases for consistency with changes to the C1X standard draft. The following features are newly supported as described in the N1539 draft of C1X (with changes agreed at the March 2011 WG14 meeting); some other features were already supported with no compiler changes being needed,or have some support but not in full accord with N1539 (as amended).

  • Static assertions (_Static_assert keyword)
  • Typedef redefinition
  • New macros in <float.h>
  • Anonymous structures and unions
原文链接:https://www.f2er.com/c/116945.html

猜你在找的C&C++相关文章