A dialogue on trivial-abi and trivially relocatable
I wrote in ”[[trivial_abi]] 101” (May 2018),
during the active development of the [[clang::trivial_abi]] attribute:
Relation to trivial relocatability: None… well, some?
As you can see, there is no requirement that a
[[trivial_abi]]class type should have any particular semantics for its move constructor, its destructor, or its default constructor. Any given class type will likely be trivially relocatable, simply because most class types are trivially relocatable by accident…
A correspondent writes in with a query for Socrates (previously seen on this blog in July 2023).
Epistolographos writes: Actually, I think trivial-abi-ness and trivial relocatability are almost the same thing.

