Hi guys. I'm getting this error
Error 5 error C2064: term does not evaluate to a function taking 2 arguments C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xrefwrap 431 1
after trying to do this
Code:
typedef std::function<int(int, int)> op;
op someOperator = std::plus<int>();
op someOtherOperator = std::minus<int>();
so I can call a function like
Code:
UpdateValues(int X, int Y, op One, op Two)
{
//eventually doing something like
One(X, someOtherInt);
Two(Y, someOtherInt);
}
What is going on?
Here is a link to my files if you need them https://www.dropbox.com/s/vn2akcyb9f...ckers.rar?dl=0