Using C++ in GCC is OK

Steinar Bang sb@dod.no
Thu Jun 3 20:28:00 GMT 2010


>>>>> Larry Evans <cppljevans@suddenlink.net>:

> claims that switch statements are faster than virtual function calls.

That's not really interesting, is it?  The overhead and downsides of
virtual functions are well known.

The upside is the possibility to use polymorphism to make frameworks.
All kinds of pluggable frameworks.

And as polymorphism goes, virtual functions are pretty cheap.



More information about the Gcc mailing list