The situation is that I try to make a huge C code chunk work in a C++ class.

The objective here is to return the sort value based on two incoming int values (the original sorter function was declared as
Code:
int srt(int *p1, int* p2)
and called from a qsort).

I tried to make it the C++ way by inserting the operator overload and see the very same problem. The operator inside the struct inside the class cannot access non-static variables at all. Well, the incoming values to be sorted are integers... Is there a chance to bypass duplication of the class?