Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc++-20 removes std::__compressed_pair #2351

Open
benine203 opened this issue Dec 11, 2024 · 0 comments
Open

libc++-20 removes std::__compressed_pair #2351

benine203 opened this issue Dec 11, 2024 · 0 comments

Comments

@benine203
Copy link

std::__compressed_pair<pointer, allocator_type> __end_cap_;
for instance references this

From libc++-20:

// Historically, libc++ used a type called `__compressed_pair` to reduce storage needs in cases of empty types (e.g. an
// empty allocator in std::vector). We switched to using `[[no_unique_address]]`. However, for ABI compatibility reasons
// we had to add artificial padding in a few places.
//
// This setting disables the addition of such artificial padding, leading to a more optimal
// representation for several types.
#  define _LIBCPP_ABI_NO_COMPRESSED_PAIR_PADDING

Failures ensue:

$ clang++ -stdlib=libc++ <...>
.
.
.
build/vcpkg_installed/x64-linux/include/folly/memory/UninitializedMemoryHacks.h:319:8: error: no template named '__compressed_pair' in namespace 'std'
  319 |   std::__compressed_pair<pointer, allocator_type> __end_cap_;
      |   ~~~~~^
1 error generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant