# 编译器相关 ## 查看编译器使用的默认标准 `__cplusplus` 这个宏定义了g++ 使用的c++标准 可通过如下命令查看: ``` $ g++ -dM -E -x c++ /dev/null | grep __cplusplus $ #define __cplusplus 201703L ```