Intel® oneAPI DPC++/C++ Compiler
Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
std, Qstd
Tells the compiler to conform to a specific language standard.
Syntax
| Linux: | -std=val | 
| Windows: | /Qstd:val /std:val (for Microsoft* compatibility) | 
Arguments
| val | Specifies the language standard to conform to. On Windows*, option /Qstd supports more values than option /std supports. Option /std complies with the values permitted by Microsoft option /std. For the latest information about Microsoft option/std, see the Microsoft documentation. The following values can be specified for both Linux* and Windows*: 
 The following value can be specified on Windows for option /std only: 
 The following values can only be specified for Linux: 
 | 
Default
| c++17 or c17 | For C++, the compiler conforms to the 2017 ISO C++ standard. For C, the compiler conforms to the 2017 ISO C standard. | 
Description
This option tells the compiler to conform to a specific language standard.
IDE Equivalent
Visual Studio: Language > C/C++ Language Support
Eclipse: Language > ANSI Conformance
Alternate Options
None