gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 17:15:40 26 4
gpt4 key购买 nike

是否有任何 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

关于c - 是否有任何 c 编译器实现了任何 C1X 功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7268522/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com