trait detecting anonymous union?

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


On Monday, 22 May 2017 at 22:11:15 UTC, Stanislav Blinov 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?
>>
>
> There isn't a built-in one. The best I can muster at 1AM is 
> finding all fields that have the same offset:

Good idea, thanks for staying up while I was asleep :-)



More information about the Digitalmars-d-learn mailing list