What the heck am I doing wrong?
void MyClass::JoinIdenticalFingerprints(CFPrintList& list)
{
CFPrintList unique_list = list;
unique(unique_list.begin(), unique_list.end(), UniquePredicate);
}
bool MyClass::UniquePredicate(const CFPrint& x, const CFPrint& y)
{
return x == y;
}
I get an error:
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\algorithm(547): error C2064: term does not evaluate to
a function taking 2 arguments
The example I followed was the help file from MSDN, looks pretty much
the same to me.
It must be something really simple... is there anything obviously wrong
with they way I create and call unique with a predicate??
Thanks