Xcode 使用std::function<;无效>;关于visual studio 2013
我正在将我的项目从mac os x(xcode)转换到windows(visual studio 2013)。 但是当我尝试使用std::函数时遇到了问题。 我举了一个例子Xcode 使用std::function<;无效>;关于visual studio 2013,xcode,c++11,visual-studio-2013,sfml,Xcode,C++11,Visual Studio 2013,Sfml,我正在将我的项目从mac os x(xcode)转换到windows(visual studio 2013)。 但是当我尝试使用std::函数时遇到了问题。 我举了一个例子 std::function<void()> processFunc; std::函数processFunc; 但我有几个错误: Error 1 error C2039: 'function' : is not a member of 'std' ...github\oglengine\engine\
std::function<void()> processFunc;
std::函数processFunc;
但我有几个错误:
Error 1 error C2039: 'function' : is not a member of 'std' ...github\oglengine\engine\game.h 39 1 Engine
Error 2 error C2143: syntax error : missing ';' before '<' ...github\oglengine\engine\game.h 39 1 Engine
Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ...github\oglengine\engine\game.h 39 1 Engine
Error 1 Error C2039:'function':不是'std'…github\oglengine\engine\game.h 39 1引擎的成员
错误2错误C2143:语法错误:缺少“;”在“之前,我认为你需要在VS