/Tc
compiler option resort only to C
, but is there any way to specify the exact compatibility level for the Microsoft C++
compiler? Like C++11
, C++03
, C++98
...
相关问题
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
- how to call a C++ dll from C# windows application
相关文章
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- Oracle equivalent of PostgreSQL INSERT…RETURNING *
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
- Copy different file to output directory for releas
- Edit & Continue doesn't work
- Android - Google Play filtering out xxhdpi
As of Visual C++ 2015 Update 3, it is now possible to specify a language version for language behavior (apparently it doesn't affect just conformance checking):
https://blogs.msdn.microsoft.com/vcblog/2016/06/07/standards-version-switches-in-the-compiler/
Unfortunately the only options are "C++14" (not exact, it includes post-C++14 features which had previously shipped) and "C++ Latest" (C++14 plus partial implementation of C++17 and proposals, but not "experimental" features). There still are no options for enabling/disabling earlier versions of the language (C++98 / C++03 / C++11 as mentioned in the question)
The corresponding command line switches are:
/std:c++14
/std:c++latest
No, the Microsoft compiler doesn't provide configurable compatibility. It is what it is.