[libcxx-commits] [libcxx] [libc++] cv-qualified types in atomic and atomic_ref (P3323R1) (PR #121414)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jan 12 05:18:01 PST 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>
----------------
frederick-vs-ja wrote:
> One possible use case I can think of is something like
This is possibly the only practical use of `atomic_ref<const Foo>` ([search results](https://github.com/search?q=atomic_ref%3Cconst&type=code)).
But it doesn't seem present in libc++'s test suit. Agree on that we should test it.
https://github.com/llvm/llvm-project/pull/121414
More information about the libcxx-commits
mailing list