今天写了一个c++11的相关语法,结果g++报错:
warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
解决办法是加入编译选项-std=c++11
今天写了一个c++11的相关语法,结果g++报错:
warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
解决办法是加入编译选项-std=c++11