Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
_RPM
on Dec 23, 2014
|
parent
|
context
|
favorite
| on:
Popular Myths about C++, Part 3
What is the point of defining the function with two void* arguments if the cast will just take place anyway?
huu
on Dec 23, 2014
[–]
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/
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: