[libcxx-commits] [libcxx] [libc++] Implement P3508R0: Wording for "constexpr for specialized memory algorithms" (PR #197313)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Fri May 22 01:52:00 PDT 2026
================
@@ -48,6 +51,25 @@ struct Nasty
int Nasty::counter_ = 0;
+#if TEST_STD_VER >= 26
+TEST_CONSTEXPR_CXX26 bool test() {
----------------
frederick-vs-ja wrote:
I still think this `test` function and corresponding ones in some other files should be unconditionally called. I've opened PRs to make `ConstCopy` etc. usable in C++03/11 modes, and add backported versions of `std::destroy` etc..
Once those PRs are merged, we can unconditionally include `copy_move_types.h` and call this function in old modes, with `std::destroy` replaced with `backport::destroy`.
https://github.com/llvm/llvm-project/pull/197313
More information about the libcxx-commits
mailing list