检查g++编译器 是否支持 C++11
For check support C++14 and other. Testing on GCC 5.2.1.
#include <iostream>
using namespace std;
int main()
{
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1900)
cout << "C++11 is supported";
#else
cout << "C++11 is not supported";
#endif
return 0;
}
}