C++ Logo

std-proposals

Advanced search

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

From: Edward Catmur <ecatmur_at_[hidden]>
Date: Tue, 20 Dec 2022 09:56:50 +0100
On Tue, 20 Dec 2022 at 03:44, Giuseppe D'Angelo via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> Il 19/12/22 22:07, Edward Catmur via Std-Proposals ha scritto:
> > Well, that's why Sébastien is proposing the attribute. You still get
> > some benefit for relocations occuring other than for argument passing.
> > If you don't care about ABI you would definitely want the break.
> >
> > Also, which current potential ABI break are you referring to?
>
> The ideas of passing a `unique_ptr` by value in a register, just like a
> raw pointer, because ... it is a raw pointer. Basically,
> [[trivial_abi]] for it / changing the calling convention.
>

But that's clang-only, right? Even libc++ wants to support multiple
compilers.

Received on 2022-12-20 08:57:02