Hi,
I have a problem with compiling the following situation:
I have a class in which there is a comparison function:
Code:
template <typename Tint>
bool CMC<Tint>::CmpVec(const vector<Tint>& a, const vector<Tint>& b) {
return a.size() > b.size();
}
in another function (member of the same class) I am calling sort function:
Code:
template <typename Tint>
void CMC<Tint>::Clique(Tint perc){
vector<vector<Tint>> CClique ;
// Fill CClique
sort(CClique.begin(),CClique.end(),CmpVec()); // her there is an error: no matching function for call to ‘CMC<long>::CmpVec() note: candidate is:
../../../src/include/CMC/CMC.hpp:89:6: note: bool CMC<Tint>::CmpVec(const std::vector<_RealType>&, const std::vector<_RealType>&)
...
}
Can anyone help ?
b