本文介紹了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的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!