C++ Logo

std-proposals

Advanced search

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

From: Lénárd Szolnoki <cpp_at_[hidden]>
Date: Mon, 2 May 2022 20:15:00 +0100
Hi,

On Mon, 02 May 2022 11:10:41 -0700
Thiago Macieira via Std-Proposals <std-proposals_at_[hidden]>
wrote:

> Parameters are always destroyed by the caller and this is required by
> the standard, not the ABI. Therefore, regular parameters shouldn't be
> relocatable.

I'm pretty sure in MSVC parameters are destroyed by the callee. I don't
think that this is non-conforming.

https://godbolt.org/z/9soos71ae

Cheers,
Lénárd

Received on 2022-05-02 19:15:07