[libcxx-commits] [libcxx] [libc++] Ensure that `std::expected` has no tail padding (PR #69673)
Jan Kokemüller via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Dec 2 14:22:35 PST 2023
================
@@ -46,6 +46,7 @@
----------------
jiixyj wrote:
I've added some tests that check that mutating operations such as `emplace()`, assignment and swap don't lead to overwritten objects in `expected`'s tail padding.
I haven't added tests for 100% of all relevant entry points -- but I guess the ones I added should pretty much uncover if an implementation does something weird with `[[no_unique_address]]`.
https://github.com/llvm/llvm-project/pull/69673
More information about the libcxx-commits
mailing list