Struct field reordering

bearophile bearophileHUGS at lycos.com
Wed Jan 1 18:11:11 PST 2014


Seen this on Reddit:

http://www.catb.org/esr/structure-packing/

It could be useful to have in Phobos some template that given 
pair-name pairs (or a struct type) returns those fields in a 
better packed order (without using align()).

See also:
https://d.puremagic.com/issues/show_bug.cgi?id=8873

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list