我的是最新的g++5, homebrew 下的
编译函数模版,代码:https://github.com/neo1218/Cpppppppppp/blob/master/STL/template/function_template.cpp
报错如下:
用 g++ function_template.cpp -o function_template -std=c++11
报同样的错。
报啥错?看不到
我这里没有出现任何问题
重新安装gcc吧,mac下用clang就行了
没装好吧,用gcc 4.8.3编译没问题