[libcxx-commits] [PATCH] D93815: [libc++] [P1065] Constexpr invoke, reference_wrapper, mem_fn, not_fn.
Arthur O'Dwyer via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Dec 25 13:10:12 PST 2020
Quuxplusone created this revision.
Quuxplusone added a reviewer: ldionne.
Quuxplusone added a project: libc++.
Quuxplusone requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
I believe this is a complete implementation of P1065R2 "Constexpr INVOKE" (Tomasz Kamiński, Barry Revzin), which was adopted for C++20.
This could use more constexpr tests for `std::reference_wrapper<T>`, but the existing tests are extremely constexpr-unfriendly and so I don't want to get into that rabbit-hole today.
I plan to push the refactoring of `ForwardingCallObject` as a separate preliminary commit:
[libc++] Constexpr-proof some machinery in not_fn.pass.cpp. NFCI.
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 44591 bytes
Desc: not available
More information about the libcxx-commits