[libcxx-commits] [libcxx] [libcxx][P1831R1] Deprecating volatile: library (PR #101439)

Josh Karns via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 5 12:12:03 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>);
----------------
jkarns275 wrote:

Fixed spelling mistake (which popped up a lot).

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


More information about the libcxx-commits mailing list