I haven't considered alignment here. I'm not sure if you have to.

I though all classes were aligned to sizeof(size_t) boundaries? Wouldn't it then just be

align(sizeof(size_t)) byte[__traits(classInstanceSize, SomeClass)] scStorage;

Reply via email to