用GCC编译代码时候后面带有-std=c++1z 的选项,这是指定c/c++的标准.具体的标准如下,详细信息可以看引用里面的详细说明
c
stand | descript |
---|
-std=c90 or -std=iso9899:1990 | 称为C89或C90 |
-std=iso9899:199409 | 称为C94或C95 |
-std=c99 or -std=iso9899:1999. | 1999年发布的 ISO/IEC 9899:1999,称为C99 |
-std=c11 or -std=iso9899:2011 | 称为C11 |
-std=gnu90 | C90和GNU扩展 |
-std=gnu99 | C99和GNU扩展 |
-std=gnu11 | C11和GNU扩展 |
c++
stand | descript |
---|
-std=c++98, or -std=c++03 | 称为 C++98 |
-std=c++11 | 称为C++11 |
-std=c++14 | 称为C++14 |
-std=c++17 or -std=c++1z | 称为C++17 |
-std=gnu++98 | C++98和GNU扩展 |
-std=gnu++11 | C++11和GNU扩展 |
-std=gnu++14 | C++14和GNU扩展 |
-std=gnu++1z | C++17和GNU扩展 |
引用
https://gcc.gnu.org/onlinedocs/gcc/Standards.html