|
-
January 8th, 2009, 05:50 PM
#3
Re: library, qsort, class, static, member access question
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|