Являются ли объекты buf и *p активными одновременно в приведенном ниже коде?
struct S { int x; char c; };
alignas(S) char buf[sizeof(S)];
S* p = new(buf) S{};
p->x = 10;
p->c = 'a';
std::cout x
Подробнее здесь: https://stackoverflow.com/questions/798 ... ct-storage