Home > Backend Development > C++ > body text

Why is __cplusplus still defined as 199711L in Visual Studio 2012 despite C 11 support?

DDD
Release: 2024-11-04 17:19:02
Original
277 people have browsed it

Why is __cplusplus still defined as 199711L in Visual Studio 2012 despite C  11 support?

C 11 Support in Visual Studio 2012: __cplusplus Defintion Discrepancy

In Visual Studio 2012, __cplusplus is defined as 199711L, indicating C 98 support. However, Visual Studio 2012 claims to support C 11. This discrepancy has raised confusion among developers.

The accepted answer acknowledges this discrepancy and confirms that the issue has been reported to Microsoft for review. A pending bug report titled "A value of predefined macro __cplusplus is still 199711L" is currently being investigated.

While C 11 headers can be included in Visual Studio 2012 projects, the incorrect definition of __cplusplus may limit some functionality or cause unexpected behavior. Developers should be aware of this discrepancy and adjust their code accordingly until Microsoft resolves the issue.

The above is the detailed content of Why is __cplusplus still defined as 199711L in Visual Studio 2012 despite C 11 support?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!