Codeblocks raises an error on this line :
set<string,cmpi> m;
Where the cmpi function is :
int cmpi(string one , string two )
{
one = toLowerCase(one);
two = toLowerCase(two);
if(two == one)
return 0;
else
if (one < two )
return -1;
else
return 1;
}
It says (the ERROR) :
type/value mismatch at argument 2 in template parameter list for 'template<class _Key, class _Compare, class _Alloc> class std::set'
Is there something with the return value of my cmpi function or is it something else ?