[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
Fri Oct 20 11:01:45 PDT 2023


jiixyj wrote:

> > Does an unnamed bit-field work?
> 
> It looks like it does!

I couldn't get the unnamed bit-field idea to work sadly. I couldn't reliably calculate the needed bits in `char : __calculate_padding() * 8;`. Something was always off a few bytes...

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


More information about the libcxx-commits mailing list