c++ - Gnu C++ 什么时候会在不明确要求的情况下支持 C++11?

标签 c++ gcc c++11 gcc4.8

目前,使用 g++-4.8.1,您必须通过 C++11 模式编译文件

g++ -std=c++11 -o prog.x prog.cpp

我能说的时候有计划吗

g++ -o prog.x prog.cpp

编译prog.cpp ?

也许 prog.cpp

  • #include <regex>
  • thread_local
  • class Widget { int member = 5; }
  • MyType operator"" myt(const char*, sze_t);
  • 等等。

最佳答案

GCC 6.0:https://gcc.gnu.org/gcc-6/changes.html

The default mode for C++ is now -std=gnu++14 instead of -std=gnu++98.

关于c++ - Gnu C++ 什么时候会在不明确要求的情况下支持 C++11?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21221411/

相关文章:

c++ - 在断点处打印线程 ID

C++ char数组大小验证

c++ - 自动检查我的应用程序的新版本

c - 如何将 Windows 中的简单程序与 Mingw GCC 链接

c++ - g++ : linker issue on Mac OS X - Undefined symbols for architecture x86_64

c++ - 错误 C1083 : Cannot open source file: "stdafx.cpp' : No such file or directory

c++ - 对 'inflateInit2_' 的 undefined reference

gcc - 在 GCC 中为代码指定节名称

c++ - std::uncaught_exceptions 对避免所有异常有用吗?

c++ - 如果中间有线程连接,为什么不能使用宽松的原子操作来同步内存?