[all-commits] [llvm/llvm-project] f9dd88: [libc++] Make std::pair trivially copyable if its ...
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Sat Jul 20 10:59:27 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f9dd885cb6e6b70deff935689bb0dfb7d5b6a1a4
https://github.com/llvm/llvm-project/commit/f9dd885cb6e6b70deff935689bb0dfb7d5b6a1a4
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2024-07-20 (Sat, 20 Jul 2024)
Changed paths:
M libcxx/include/__configuration/abi.h
M libcxx/include/__type_traits/datasizeof.h
M libcxx/include/__utility/pair.h
M libcxx/test/libcxx/utilities/utility/pairs/pairs.pair/abi.trivial_copy_move.pass.cpp
M libcxx/test/libcxx/utilities/utility/pairs/pairs.pair/abi.trivially_copyable.compile.pass.cpp
Log Message:
-----------
[libc++] Make std::pair trivially copyable if its members are (#89652)
This makes `std::pair` trivially copyable if its members are and we have
a way to do so. We need either C++20 with requires clauses or support
for `__attribute__((enable_if))`. Only Clang has support for this
attribute, so it's effectively clang or C++20.
Co-authored-by: Christopher Di Bella <cjdb at google.com>
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