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

Damien L-G via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 7 15:26:49 PST 2025


================
@@ -24,79 +24,126 @@
 #include "test_helper.h"
 #include "test_macros.h"
 
-template <typename T>
+template <typename T, typename U>
+concept has_compare_exchange_strong_1 =
+    requires { std::declval<T>().compare_exchange_strong(std::declval<U&>(), std::declval<U>()); };
----------------
dalg24 wrote:

I followed your suggestion and got rid of `decval`

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


More information about the libcxx-commits mailing list