Home > Article > Backend Development > 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!