C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Relocation in C++

From: Bjorn Reese <breese_at_[hidden]>
Date: Mon, 2 May 2022 15:40:24 +0200
On 5/2/22 15:23, Sébastien Bini via Std-Proposals wrote:

> Indeed, pointers and references on a relocated value become dangling.
> The proposal does not address this issue.
>
> In my opinion this is a larger problem in C++ and goes much beyond the
> proposed reloc operator.

What about self-references? That is, pointers inside the reallocated
area that point to data inside the reallocated area.

Received on 2022-05-02 13:40:25