#include <functional> int f(int i) { return i; } int main() { std::function<int(int)> func = &f; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:9: error: ‘function’ is not a member of ‘std’ prog.cpp:9: error: expected primary-expression before ‘int’ prog.cpp:9: error: expected `;' before ‘int’
Standard output is empty