Using C++ in GCC is OK
Steinar Bang
sb@dod.no
Thu Jun 3 19:41:00 GMT 2010
>>>>> Mark Mitchell <mark@codesourcery.com>:
> I think virtual functions are on the edge; quite useful, but do result
> in the compiler adding a pointer to data objects and in uninlinable
> indirect calls at run-time. Therefore, I would avoid them in the
> initial subset of C++ used in GCC.
Umm...? Virtual functions are _the_ core C++ feature for creating OO
frameworks.
Allowing C++ but avoiding virtual functions seems odd to me.
More information about the Gcc
mailing list