prog.cpp:8: error: expected `)' before ‘<’ token
prog.cpp:16: error: ISO C++ forbids declaration of ‘function’ with no type
prog.cpp:16: error: invalid use of ‘::’
prog.cpp:16: error: expected ‘;’ before ‘<’ token
prog.cpp:17: error: ISO C++ forbids declaration of ‘function’ with no type
prog.cpp:17: error: invalid use of ‘::’
prog.cpp:17: error: expected ‘;’ before ‘<’ token
prog.cpp: In function ‘int main(int, char**)’:
prog.cpp:25: error: no matching function for call to ‘BinaryFunctor<int, int>::BinaryFunctor(int (&)(int, int), int (&)(int, int))’
prog.cpp:6: note: candidates are: BinaryFunctor<int, int>::BinaryFunctor()
prog.cpp:6: note: BinaryFunctor<int, int>::BinaryFunctor(const BinaryFunctor<int, int>&)
prog.cpp: In member function ‘bool BinaryFunctor<T, U>::operator()(T, T) [with T = int, U = int]’:
prog.cpp:26: instantiated from here
prog.cpp:12: error: ‘b_’ was not declared in this scope
prog.cpp:12: error: ‘a_’ was not declared in this scope