trait detecting anonymous union?

Bastiaan Veelo via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 23 00:25:12 PDT 2017


On Tuesday, 23 May 2017 at 01:02:59 UTC, Vladimir Panteleev wrote:
> 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

Interesting work. Thanks or sharing!

Bastiaan.


More information about the Digitalmars-d-learn mailing list