News for hackers. Stuff that matters.
Re:Why introduce `std::launder` rather than have the compile... by ectopod on Saturday January 22, 2022 @11:45AM (#30038239)
From the article:

> if you allocate a new object in the storage of the old one, you cannot access the new object through pointers to the old

Which implies the UB happens in the caller.

Re:Why introduce `std::launder` rather than have the compile... by sutuplesu on Saturday January 22, 2022 @01:30PM (#30039421)
> you cannot access the new object through pointers to the old

The access in the caller -- `return f.x` -- is not through a pointer.