Re:Popular Myths about C++, Part 3
by _RPM on Monday December 22, 2014 @10:21PM
(#8786632)
What is the point of defining the function with two void* arguments if the cast will just take place anyway?
[ Parent
| on HN ]
The signature of greater is relevant because it has to conform to the interface for qsort. See the final argument of the interface here: http://www.cplusplus.com/reference/cstdlib/qsort/