[libcxx-commits] [libcxx] [libc++] Make std::pair trivially copyable if its members are (PR #89652)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 22 07:20:32 PDT 2024


gulfemsavrun wrote:

We started seeing the multiple instances of the following in our builders.
```
../../prebuilt/third_party/clang/custom/bin/../include/c++/v1/__utility/pair.h:102:31: error: the parameter for this explicitly-defaulted copy assignment operator is const, but a member or base requires it to be non-const
  102 |   _LIBCPP_HIDE_FROM_ABI pair& operator=(const pair&)
```
I'm fixing the issues in the code that we own, but what are your suggestions for the issues in third_party or vendor code? Is there a way to avoid this issue in third party code like suppressing it in GN?

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


More information about the libcxx-commits mailing list