LWN.net Logo

Sometimes C++ is faster

Sometimes C++ is faster

Posted Jun 18, 2008 21:58 UTC (Wed) by flewellyn (subscriber, #5047)
In reply to: Sometimes C++ is faster by ncm
Parent article: Converting GCC to C++

You would DECLARE the types of the arguments in the calling function.  Then (in some
implementations, anyway) the compiler would see that the arguments to the generic function are
of a particular type, and do the dispatch at compile-time.  No changes to the called GF
required.


(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds