Problème STL : error C2064: term does not evaluate to a function taking 1 arguments
Bonjour,
J'ai une erreur de compilateur que je ne parviens pas à résoudre, pourriez-vous m'aider :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| template<class InIt,class Pr>
inline InIt _find_if(InIt First, InIt Last, Pr Pred)
{ // find first satisfying _Pred
_DEBUG_RANGE(First, Last);
_DEBUG_POINTER(Pred);
for (; First != Last; ++First)
if (Pred(*First)) <----- Problème ici
break;
return (First);
}
template<class InIt, class Pr>
inline InIt find_if(InIt First, InIt Last, Pr Pred)
{ // find first satisfying _Pred
_ASSIGN_FROM_BASE(First,_find_if(_CHECKED_BASE(First), _CHECKED_BASE(Last), Pred));
return (First);
} |
Ca me fait : error C2064: term does not evaluate to a function taking 1 arguments