Cameleon: Stricter Alternative Implementation of VariantN
Nordlöw via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 22 07:15:20 PDT 2015
On Tuesday, 22 September 2015 at 12:54:47 UTC, Kagamin wrote:
> You can generate a union from allowed types, it will make
> copies type safe too, sort of set!(staticIndexOf(T,
> AllowedTypes))(rhs)... hmm... can it be an overload?
I believe there is a trait somewhere that figures out the maximum
alignment needed for a set/union of types. I think Walter spoke
about in a DConf lecture some time ago.
More information about the Digitalmars-d-learn
mailing list