Implements parts of:
- P0898R3 Standard Library Concepts
- P1754 Rename concepts to standard_case for C++20, while we still can
Depends on D97359
Differential D97443
[libcxx] adds concept std::copyable cjdb on Feb 24 2021, 10:48 PM. Authored by
Details
Implements parts of:
Depends on D97359
Diff Detail
Unit Tests Event Timeline
Comment Actions As usual, the code in <concepts> seems obviously correct, and the tests seem too verbose.
Comment Actions LGTM. Since they @zoecarver and @Quuxplusone have some comments I leave the final approval to them.
Comment Actions Accepted, in that the code is obviously correct and we're unlikely ever to agree on the "right" tests. 😛
Comment Actions LGTM. I don't want to squash the conversation here, but I think we've discussed it enough. The actual changes here look solid, and I think they should be allowed to proceed. |
I see nothing testworthy about these four pointer types. The cv-qualification of the pointed-to type is obviously irrelevant to the copyability of the pointer itself.
However, it might be interesting to test some top-level-cv-qualified class types, i.e. const S and volatile S, especially w.r.t. when they have (or don't have) const-qualified assignment operators.