News for hackers. Stuff that matters.
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?
Re:Popular Myths about C++, Part 3 by huu on Monday December 22, 2014 @10:29PM (#8786652)
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/