[libcxx-commits] [libcxx] [libc++] Ensure that `std::expected` has no tail padding (PR #69673)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 20 11:56:55 PDT 2023


Jan =?utf-8?q?Kokemüller?= <jan.kokemueller at gmail.com>,
Jan =?utf-8?q?Kokemüller?= <jan.kokemueller at gmail.com>,
Jan =?utf-8?q?Kokemüller?= <jan.kokemueller at gmail.com>,
Jan =?utf-8?q?Kokemüller?= <jan.kokemueller at gmail.com>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/69673/libcxx at github.com>


philnik777 wrote:

@zygoloid s `repr_type` looks really promising. That should allow us to have a nice ABI and fix the bugs we currently have. @jiixyj could you try that version and check whether it actually fixes everything and gives us the nice ABI? (Note that you have to name the union to apply `[[no_unique_address]]`)

https://github.com/llvm/llvm-project/pull/69673


More information about the libcxx-commits mailing list