[libcxx-commits] [libcxx] [libc++] cv-qualified types in atomic and atomic_ref (P3323R1) (PR #121414)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 31 12:52:03 PDT 2025


================
@@ -29,7 +29,13 @@
 #include <__cstddef/ptrdiff_t.h>
 #include <__memory/addressof.h>
 #include <__type_traits/has_unique_object_representation.h>
+#include <__type_traits/is_const.h>
----------------
ldionne wrote:

I agree with the sentiment that this needs a test. However, based on my discussion with @dalg24  just now, I fail to see how the test helper can be modified to accommodate that. Given that, I think it's acceptable to move forward with the patch despite not having great "runtime behavior" coverage for `atomic_ref<const T>`.

If you have ideas for changing the test driver, please let us know.

https://github.com/llvm/llvm-project/pull/121414


More information about the libcxx-commits mailing list