10 Jun
2014
10 Jun
'14
10:51 a.m.
template<class T> struct alignment_of<T[]>: alignment_of<T> {};
If we also add template<class T, size_t N> struct alignment_of<T[N]>: alignment_of<T> {}; for consistency, even though it's not needed, I wonder if struct padded { char unit; T object[ 31 ]; }; wouldn't produce a more accurate value, obviating the need for min_size.