Tells the compiler to conform to a specific language standard.
Linux: | -std=val |
Windows: | /Qstd:val /std:val (For Microsoft* compatibility) |
val |
Specifies the specific language standard to conform to. The following values apply to Linux* -std and Windows* /Qstd:
The following values apply only to Linux -std:
For possible values for Microsoft*-compatible Windows* /std, see the Microsoft* documentation. |
Default for Windows option
/Qstd:
|
The compiler does not conform to a specific language standard. |
Default for Windows option
/std:
|
Currently, the compiler conforms to the 2014 ISO C++ standard. For the latest information, see the Microsoft* documentation. |
Default for
Linux option
-std on dpcpp:
|
The compiler conforms to the 2017 ISO C++ standard. |
Default for
Linux option
-std on icx:
|
The compiler conforms to the 2014 ISO C++ standard. |
This option tells the compiler to conform to a specific language standard.
Visual Studio: Language > C/C++ Language Support
Eclipse: Language > ANSI Conformance
None