C++: Trouble with tr1::bind (C2065)
- by Rosarch
I'm getting a compiler error with bind:
using namespace std;
bool odp(int arg1, int arg2);
// ...
find_if(vec.begin(), vec.end(), tr1::bind(odp, iValue, _1)); // C2065
My goal is to curry odp(), so its first argument is iValue, and apply that function in find_if.
The error:
C2065: '_1' : undeclared identifier.
What am I doing wrong?