Suggestion: class/struct tuples preserve anonymous unions/structs
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Thu Feb 15 05:57:50 PST 2007
Jarrett Billingsley wrote:
[snip code]
>
> Thanks for this :) I was thinking it might be possible to check the
> .offsetofs.
Something I just thought of: that code doesn't take typedefs into
account. That loophole can be closed by using is(T Base == typedef) and
inspecting Base recursively if it evaluates to true. Implementing this
is left as an exercise to the reader ;).
More information about the Digitalmars-d
mailing list