Is it possible to configure the Visual Studio compiler for a specific version of C ++?

Is it possible to configure the Visual Studio compiler for a specific version of C ++ (for example, C ++ 03 or C ++ 11)? If so, how?

I am using Visual Studio 2010.

+4
source share
2 answers

No, you can’t. To a large extent, the only flag for language management is /Za (do not use Microsoft extensions), and it is so broken that the MS STL has not even been tested with it, and parts may not compile - not to mention the Windows SDK headers.

+4
source

VS2010, obviously, cannot be installed for compatibility with C ++ 11. (less obvious, 2012 cannot be ...)

As for C ++ 03, it is quite compatible, you can find a short list of differences in msdn. There are also options for disabling extensions, although this switch has no practical use.

0
source

Source: https://habr.com/ru/post/1487507/


All Articles