[libcxx-commits] [libcxx] [libc++] refactor `cxx_atomic_wait` to make it reusable for atomic_ref (PR #81427)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 1 09:21:04 PST 2024


================
@@ -200,6 +196,32 @@ struct __atomic_base<_Tp, true> : public __atomic_base<_Tp, false> {
   _LIBCPP_HIDE_FROM_ABI _Tp operator^=(_Tp __op) _NOEXCEPT { return fetch_xor(__op) ^ __op; }
 };
 
+// here we need _IsIntegral because the default template argument is not enough
----------------
ldionne wrote:

```suggestion
// Here we need _IsIntegral because the default template argument is not enough
```

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


More information about the libcxx-commits mailing list