C++ Logo

std-discussion

Advanced search

Re: std::launder question

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Tue, 22 Feb 2022 08:56:44 +0200
On Tue, 22 Feb 2022 at 08:37, Peter C++ via Std-Discussion
<std-discussion_at_[hidden]> wrote:
>
> it seems to me using an index 5 on an array of size 5 is at least UB anyway.

The example code doesn't do that.

Received on 2022-02-22 06:56:56