Hello,
You can work around the problem in this way:
class ClassTest{
public:
ClassTest(int rank){
this->m_rank = rank;
}
~ClassTest(){}
int GetRank(){ return m_rank;}
int compare(const ClassTest &o){
return o.GetRank()- this->m_rank;
}
private:
int m_rank;
};
Best regards!
Jason
OriginLab Technical Service