Hidden members of Class objects
Carl Sturtivant
sturtivant at gmail.com
Wed Mar 6 23:39:13 UTC 2024
I notice that a class with no data members has a size of two
words (at 64 bits). Presumably there's a pointer to a table of
virtual functions, and one more. Is the Vtable first?
A COM class that inherits from IUnknown and has no data members
has a size of three words, presumably as before plus something
that ordinarily is in the Vtable but can't be for a COM object as
it has its own layout of that.
What is actually in these objects using that space?
More information about the Digitalmars-d-learn
mailing list