C++ Logo


Advanced search

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

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Tue, 20 Dec 2022 03:44:37 +0100
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.

Thank you,
Giuseppe D'Angelo

Received on 2022-12-20 02:44:41