Mail Archives: djgpp/1998/02/23/03:30:33
Thomas Demmer wrote:
> I am not sure if this can work at all. I believe every class
> member function has a hidden parameter, the "this"-variable.
> And as qsort() as a normal C function doesn't know anything
> about classes, this will probably always fail.
qsort requires function pointers, and the names of member functions are
member function pointers, not function pointers. One can use static
member functions as the contents of a normal C-style member function
pointer, though.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm://+37.20.07/-121.53.38
\
"I've got the fever for the / flavor of a cracker"
/ Ice Cube
- Raw text -