C++98: __cplusplus is 199711L.
C++11: __cplusplus is 201103L.
cout << __cplusplus << endl;
199711 说明是 C++98
编译加个选项 g++ -std = c++11 main.cpp
201103 说明是 C++11
C++98: __cplusplus is 199711L.
C++11: __cplusplus is 201103L.
cout << __cplusplus << endl;
199711 说明是 C++98
编译加个选项 g++ -std = c++11 main.cpp
201103 说明是 C++11