detect anonymous union at compile time

cal callumenator at gmail.com
Thu Mar 28 13:26:16 PDT 2013


On Thursday, 28 March 2013 at 20:18:45 UTC, Andrej Mitrovic wrote:
> .offsetof will also require access rights to the fields.

Yeh this is the problem. I can map data layout of complex 
aggregates, even if the members are private, but unions mess that 
up. Restricting to public fields is an option, but i'd like to be 
able to get it all.


More information about the Digitalmars-d-learn mailing list