[libcxx-commits] [libcxx] [libc++] Replace `__compressed_pair` with `[[no_unique_address]]` (PR #76756)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Sep 12 09:01:22 PDT 2024
================
@@ -45,6 +45,9 @@ _LIBCPP_GCC_DIAGNOSTIC_IGNORED("-Winvalid-offsetof")
template <class _Tp>
inline const size_t __datasizeof_v = __builtin_offsetof(_FirstPaddingByte<_Tp>, __first_padding_byte_);
_LIBCPP_DIAGNOSTIC_POP
+
+template <class _Tp>
+inline const size_t __datasizeof_v<_Tp&> = __datasizeof_v<_Tp>;
----------------
ldionne wrote:
Is this necessary? If not necessary in this patch, I would remove it from this patch and instead pursue it as a different patch with a tiny test added.
https://github.com/llvm/llvm-project/pull/76756
More information about the libcxx-commits
mailing list