[libcxx-commits] [libcxx] [libc++] Make std::pair trivially copyable if its members are (PR #89652)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 23 12:03:09 PDT 2024
philnik777 wrote:
I think I see the problem with @cjdb's case. We don't actually drop the non-trivial `operator=` from overload resolution. We just make it `__nat`, so we have multiple candidates. I'm not sure why a `pair` with a `const` member is not trivially copyable anymore though. An explicitly defaulted special member should just be implicitly deleted.
https://github.com/llvm/llvm-project/pull/89652
More information about the libcxx-commits
mailing list