Boost logo

Boost :

Subject: [boost] [TypeSort] Automatic type sorting
From: costis glynos (cosglyn_at_[hidden])
Date: 2015-03-20 11:59:59

Hello,Is there any interest in a library which automatically sorts types from smallest to largest at compile time?The benefit would be the automatic Data Structure Alignment and potential improvement in performance.Foo<int,bool,Custom16ByteType,char,double,short> foo_1; //normal
Foo<int,bool,Custom16ByteType,char,double,short> foo_2; //using the TypeSort
size of foo_1 = 48
size of foo_2 = 32 Kind Regards,

Boost list run by bdawes at, gregod at, cpdaniel at, john at