On Thursday, 6 August 2020 at 12:51:22 UTC, H. S. Teoh wrote: > Of course. In fact, it's trivial: > > ------ > template maxSizeOf(T...) > { > align(1) union Impl { > T t; > } > enum maxSizeOf = Impl.sizeof; > } Clever. Thanks