Hi,
I have the following functions declared in my CPP program.
static int strToInt(const StrIntMap* map, const RWCString& str, int notFound, bool bNotFoundPassed, int ((*comp)(const char *, const char *)))
And the function is called with in an other function as shown below.
strToInt(const StrIntMap* map, const RWCString& str)
{ return strToInt(map, str, 0, false, strcmp); }
But it give me the following warning.
Warning (Anachronism): Formal argument comp of type int(*)(const char*,const char*) in call to strToInt(const StrIntMap*, const RWCString&, int, bool, int(*)(const char*,const char*)) is being passed extern "C
" int(*)(const char*,const char*).
Please anybody to help me to remove the above mentioned warning.
Thanks in advance.
Ram
I have the following functions declared in my CPP program.
static int strToInt(const StrIntMap* map, const RWCString& str, int notFound, bool bNotFoundPassed, int ((*comp)(const char *, const char *)))
And the function is called with in an other function as shown below.
strToInt(const StrIntMap* map, const RWCString& str)
{ return strToInt(map, str, 0, false, strcmp); }
But it give me the following warning.
Warning (Anachronism): Formal argument comp of type int(*)(const char*,const char*) in call to strToInt(const StrIntMap*, const RWCString&, int, bool, int(*)(const char*,const char*)) is being passed extern "C
" int(*)(const char*,const char*).
Please anybody to help me to remove the above mentioned warning.
Thanks in advance.
Ram