近日,微软发布了 Visual Studio 2015 Update 3 rc , 而 Visual C++ 增加了一个新的特性,即类似与 g++ 和 clang++ 选择 C++ 标准, 目前支持的只有 C++14 C++ latest 参数分别是 /std:c++14 /std:c++latest
相关博客:
https://blogs.msdn.microsoft.com/vcblog/2016/06/07/standards-version-switches-in-the-compiler/
|      1allenx      2016-06-08 14:15:23 +08:00 好顶赞! | 
|      2Neveroldmilk      2016-06-08 14:25:49 +08:00 标题党吧, C++标准那么多的,就是 gcc 最新版也只是支持最新 C++标准的子集。 | 
|  |      3mxalbert1996      2016-06-08 15:30:07 +08:00 via Android @Neveroldmilk 你仔细看标题了么?说的是支持选择 C++ 标准好么? | 
|      4googlebot      2016-06-08 15:36:50 +08:00 via Android 支持 c99 吗? 否则是没有,好多开源是 c , | 
|  |      5araraloren      2016-06-08 17:02:59 +08:00 @googlebot 万年 C90 ,我就是不更新.. | 
|  |      7forcecharlie OP @googlebot  @araraloren Visual C++ 有个 Clang CodeGen 工具,就是 clang 的前端嫁接 Visual C++ 后端,也就是 UTC , c99 c11 标准都支持。 clang -v clang with Microsoft CodeGen version 3.8.0 Provided as - is without support C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Clang 3.7\bin\x86\x86\c2.dll version 19.0.25317.0 Target: i686-pc-windows-msvc Thread model: posix InstalledDir: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\Clang 3.7\bin\x86 | 
|      8arrowna      2016-06-08 23:07:39 +08:00 我还在用 vs2013 |