简体   繁体   English

强制visual studio 2012编译器使用C ++ TR1(2007标准)

[英]Force visual studio 2012 compiler to use C++ TR1 (2007 standard)

Is it possible to force the visual studio compiler to compile according to the 2007 C++ standard (ISO/IEC TR 19768:2007, C++TR1)? 是否可以强制visual studio编译器根据2007 C ++标准 (ISO / IEC TR 19768:2007,C ++ TR1)进行编译?

I have to avoid using any C++11 features in my current project, even though we already use the 2012 studio. 我必须避免在我当前的项目中使用任何C ++ 11功能,即使我们已经使用了2012工作室。

If you have a parallel installation of eg VisualStudio 2008, you can use its compiler out of VS2012 for your C++ projects. 如果您有VisualStudio 2008的并行安装,则可以使用VS2012中的编译器来完成C ++项目。 This is done in the project's settings, via "Platform toolset". 这是通过“平台工具集”在项目设置中完成的。

to compile according to the 2007 C++ standard 根据2007 C ++标准编译

No. Because VS2012 (or 2013) does not completely implement C++07 (despite including parts of the next – "C++14" – standard). 不会。因为VS2012(或2013)没有完全实现C ++ 07(尽管包括下一部分 - “C ++ 14” - 标准)。

You'll need to specify which specific language or library features you are concerned about (and why would be helpful) for a more specific answer. 您需要指定您关注的特定语言或库功能(以及为什么会有所帮助)以获得更具体的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM