Is it possible to force the visual studio compiler to compile according to the 2007 C++ standard (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.
If you have a parallel installation of eg VisualStudio 2008, you can use its compiler out of VS2012 for your C++ projects. This is done in the project's settings, via "Platform toolset".
to compile according to the 2007 C++ standard
No. Because VS2012 (or 2013) does not completely implement C++07 (despite including parts of the next – "C++14" – standard).
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.