This already implements the expected changes for LWG-3205
Details
- Reviewers
mclow.lists EricWF CaseyCarter cjdb ldionne - Group Reviewers
Restricted Project - Commits
- rGc579ab9962b1: [libcxx][type_traits] Add C++20 changes to common_type
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Doing -- but could you please ask for commit rights? This wouldn't prevent you from needing to request reviews, but at least you could commit your patches yourself once you have the LGTM. The process for obtaining commit rights is https://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access.
Sorry, two more things as I look at the diff again locally.
libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/common_type.pass.cpp | ||
---|---|---|
228 | There's a weird non-printable character on this line (<U+00AD>). I noticed that by looking at the diff in git. Please watch out for those. | |
231 | Don't we need to test with some cv qualified and ref types too? |
libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/common_type.pass.cpp | ||
---|---|---|
228 | Sory, I guess this comes from copying from eel.is I will have a look for those | |
231 | I guess adding cv qualifiers similar to the above bullets should work even for a reference wrapper. If I understand CREF correctly this should also work std::is_same_v<std::common_type_t<bad_reference_wrapper<double>&, double>, double> I will come back with some additional tests |
There's a weird non-printable character on this line (<U+00AD>). I noticed that by looking at the diff in git. Please watch out for those.