i have this function
static bool TowerInfoInterface::_CompareIteratorValue(const char* c1 , const char* c2)
{
return (strcmp(*c1, *c2) == 0)? true:false;
}
im trying to past it into this func
iterator find(const T &inT, bool (*obj)(const T&, const T&)) const
but it keep giving me this err
cannot convert parameter 2 from 'bool (__cdecl *)(const char *,const char *)' to 'bool (__cdecl *)(const T &,const T &)'
with
[
T=char *
]
None of the functions with this name in scope match the target type
i even tried to change _CompareIteratorValue to
_CompareIteratorValue (const char*& c1 , const char*& c2)
same err msg:
cannot convert parameter 2 from 'bool (__cdecl *)(const char *&,const char *&)' to 'bool (__cdecl *)(const T &,const T &)'
1> with
1> [
1> T=char *
1> ]
1> None of the functions with this name in scope match the target type
any one have any suggestion?
cheers :)