Sometimes C++ is faster
Posted Jun 18, 2008 17:00 UTC (Wed) by
rompel (subscriber, #4512)
In reply to:
Sometimes C++ is faster by hans
Parent article:
Converting GCC to C++
Of course you could implement qsort as a C macro and get the same advantage. See here for example. No doubt the template implementation is cleaner, but not all that much. Once again, C++ provides some nice syntactic sugar, but no fundamental advantage.
(
Log in to post comments)