Visual Studio 2012 __cplusplus and C++ 11(Visual Studio 2012 __cplusplus 和 C++ 11)
问题描述
有谁知道为什么 __cplusplus
在我的 Visual Studio 2012 c++ 项目中被定义为 199711L
(这是旧的"C++)?难道不应该说 201103L
因为 VS 2012 现在有 C++ 11 支持吗?即使我包含 C++ 11 头文件,它仍然是错误定义的.有什么线索吗?
Anyone know why __cplusplus
is defined as 199711L
(which is the "old" C++) in my Visual Studio 2012 c++ project? Should it not say 201103L
since VS 2012 now has C++ 11 support? Even if I include C++ 11 headers it still is wrongly defined. Any clues?
推荐答案
这个已经提交给微软审核:
This has already been submitted to Microsoft for review:
预定义宏的值__cplusplus 还是 199711L
这篇关于Visual Studio 2012 __cplusplus 和 C++ 11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Visual Studio 2012 __cplusplus 和 C++ 11


- 将 hdc 内容复制到位图 2022-09-04
- DoEvents 等效于 C++? 2021-01-01
- 从父 CMakeLists.txt 覆盖 CMake 中的默认选项(...)值 2021-01-01
- OpenGL 对象的 RAII 包装器 2021-01-01
- 使用 __stdcall & 调用 DLLVS2013 中的 GetProcAddress() 2021-01-01
- XML Schema 到 C++ 类 2022-01-01
- 如何提取 __VA_ARGS__? 2022-01-01
- 哪个更快:if (bool) 或 if(int)? 2022-01-01
- 将函数的返回值分配给引用 C++? 2022-01-01
- GDB 不显示函数名 2022-01-01