[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 Oct 21 05:24:32 PDT 2023
================
@@ -1552,8 +1570,56 @@ class expected<_Tp, _Err> {
_LIBCPP_NO_UNIQUE_ADDRESS _ErrorType __unex_;
};
- _LIBCPP_NO_UNIQUE_ADDRESS __union_t<_Err> __union_;
- bool __has_val_;
+ struct __expected_repr {
----------------
jiixyj wrote:
done!
https://github.com/llvm/llvm-project/pull/69673
More information about the libcxx-commits
mailing list