trait detecting anonymous union?

Vladimir Panteleev via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon May 22 18:02:59 PDT 2017


On Monday, 22 May 2017 at 21:03:42 UTC, Bastiaan Veelo wrote:
> Is there a way to detect at CT that S has overlapping data 
> members, when an anonimous union is used as above?

I have an implementation here:

https://github.com/CyberShadow/rclidasm/blob/31bde3347ec1259026b6ab15e2305f2a99e63a30/src/rclidasm/meta.d#L110-L183


More information about the Digitalmars-d-learn mailing list