[all-commits] [llvm/llvm-project] df6c27: [libc++] Make std::allocator always trivially defa...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Thu Dec 11 01:28:05 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df6c27e752e17bc68c1c962f159a8fde796071f3
      https://github.com/llvm/llvm-project/commit/df6c27e752e17bc68c1c962f159a8fde796071f3
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2025-12-11 (Thu, 11 Dec 2025)

  Changed paths:
    M libcxx/docs/ReleaseNotes/22.rst
    M libcxx/include/__memory/allocator.h
    A libcxx/test/libcxx/memory/allocator_triviality.compile.pass.cpp
    A libcxx/test/libcxx/memory/allocator_triviality.deprecated_abi.compile.pass.cpp
    R libcxx/test/libcxx/memory/allocator_void.trivial.compile.pass.cpp
    M libcxx/test/std/utilities/optional/optional.specalg/make_optional_explicit.pass.cpp
    M libcxx/test/std/utilities/optional/optional.specalg/make_optional_explicit_initializer_list.pass.cpp

  Log Message:
  -----------
  [libc++] Make std::allocator always trivially default constructible (#169914)

This is technically ABI breaking, since `is_trivial` and
`is_trivially_default_constructible` now return different results.
However, I don't think that's a significant issue, since `allocator` is
almost always used in classes which own memory, making them non-trivial
anyways.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list