On Sunday, 11 August 2013 at 16:40:48 UTC, Maxim Fomin wrote: > Yes, this is answer to the question. By the way, it can be > simply > > enum S = typeid(Whatever).init.length; If exact type is statically known, no ClassInfo is required: enum S = __traits(classInstanceSize, Whatever);