struct Keyword
{
std::string keyword;
int numUses;
};
bool sortingVector(const Keyword& key1, const Keyword& key2)
{
return key1.numUses < key2
Is sortingVector
a non-static member of some class? The error message suggests that it is, in which case you will need to wrap it (using boost::bind
, for example) into a binary operation that doesn't take a this
parameter. You might want to make sortingVector
a static member or a free function instead.