Getting Data Members of an Aggregate

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Sep 18 14:49:58 PDT 2016


How do I extract only the *data* members of an aggregate type `T`.

Simpliy `__traits(allMembers, T)` is not enough since it all 
returns function, type and alias members along side the data 
members.

I need this when serializing an instance of the element type to 
be inserted into a radix tree container.


More information about the Digitalmars-d-learn mailing list