Visual Studio 2012 __cplusplus 和 C++ 11

2021-12-07 00:00:00 visual-studio visual-c++ c++ 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

相关文章