Arne Schmitz wrote:
Quote:
If i have an abstract base class, that only contains pure virtual
methods (and maybe some non-virtual methods), is a vtable still being
generated, for the first derived class that implements those pure
virtuals? My idea is that as long as there are less than two virtual
methods of the same name in existance, it would (in theory) not be
necessary to build a vtable, thus eliminating the need for a lookup
during runtime.
"Less than two virtual method of the same name in existance"? Could
you please elaborate? The 'vtable' method of implementing virtual
function mechanism has nothing to do with the number of identically
named functions in existence. Besides, if I derive from your class
and override one of them, and then do it again, and again, how (or
why) would it affect the way _your_ class is implemented?
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask