[libcxx-commits] [libcxx] [libcxx] Implementation of P1831R1 (PR #101439)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sun Aug 4 03:34:40 PDT 2024


================
@@ -47,6 +47,7 @@ struct atomic : public __atomic_base<_Tp> {
   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR atomic(_Tp __d) _NOEXCEPT : __base(__d) {}
 
   _LIBCPP_HIDE_FROM_ABI _Tp operator=(_Tp __d) volatile _NOEXCEPT {
+    static_assert(__deprecated_if_not_awlays_lock_free<_Tp, __base::is_always_lock_free>);
----------------
mordante wrote:

```suggestion
    static_assert(__deprecated_if_not_always_lock_free<_Tp, __base::is_always_lock_free>);
```

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


More information about the libcxx-commits mailing list