WittyGuy schreef:
Ian wrote: At least one byte.
What is the advantage of using empty class?
Empty classes do not have to take up space when used as base classes.
E.g. an empty class deriving from two empty base classes can also be
1 byte.
The main reason "really" empty classes (i.e. nothing between the { }
and
no base classes ) are in the language is that it would take an extra
rule
to disallow them. That's not worth it
HTH,
Michiel Salters