Sounds like a reasonable proposal, but one tricky to implement.
In order to support polymorphic types linked before this feature, it needs to
support returning sizeOf() == alignOf() == 0 or another sentinel value that
indicates absence of information.
Also note that typeid(void) is valid, so what does typeid(void).sizeOf()
return?
--
Thiago Macieira - thiago (AT)
macieira.info - thiago (AT)
kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358