Is there a way to suppress Intellisense errors when using C++11 features specific to November 2012 CTP?

别等时光非礼了梦想. 提交于 2019-11-30 01:08:36

问题


My code compiles and runs just fine (so far...), however, because Visual Studio's Intellisense doesn't yet support the C++11 features new to the 2012 CTP's compiler:

Having chunks of perfectly good (albeit experimental) code underlined red tends to throw me off a bit. Is there a way to tell Intellisense to ignore errors in specific places?

Can someone recommend an IDE that already offers proper syntax highlighting and checking for these new features (specifically, delegating constructors, initializer lists and variadic templates, these are the ones that got me hooked)?


回答1:


I'm quite confident you cannot do that.

The CTP independently updates the compiler only, not Intellisense. Intellisense is based on EDG's front-end, which the CTP does not update (even regardless of the CTP, Intellisense and the compiler might disagree at times because of this). See also this Q&A on SO for a clarification.

You can, of course, disable Intellisense completely, but I don't think that's what you were asking for.




回答2:


Go to:

Tools->Options->Text Editor->C/C++->Advanced->Intellisense

and set "Disable Error Reporting" to true.



来源:https://stackoverflow.com/questions/14713391/is-there-a-way-to-suppress-intellisense-errors-when-using-c11-features-specifi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!