[all-commits] [llvm/llvm-project] 095e9a: [libc++] Implement LWG4472: std::atomic_ref<const ...

Avi Patel via All-commits all-commits at lists.llvm.org
Thu Jul 9 03:30:05 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 095e9a16eaf0982208006138a2f03ec0a540d73e
      https://github.com/llvm/llvm-project/commit/095e9a16eaf0982208006138a2f03ec0a540d73e
  Author: Avi Patel <aviipatel06 at gmail.com>
  Date:   2026-07-09 (Thu, 09 Jul 2026)

  Changed paths:
    M libcxx/docs/Status/Cxx26Issues.csv
    M libcxx/include/__atomic/atomic_ref.h
    M libcxx/test/std/atomics/atomics.ref/ctor.pass.cpp

  Log Message:
  -----------
  [libc++] Implement LWG4472: std::atomic_ref<const T> can be constructed from temporaries (#208131)

## Summary
- Implements LWG4472, i.e., adds a deleted `atomic_ref(T&&)` overload to
the primary template and three partial specializations of `atomic_ref`.


## Test
- Added `static_assert`s in `ctor.pass.cpp` asserting
`atomic_ref<T>`/`atomic_ref<const T>` reject construction from
`T&&`/`const T&&`.

Resolve #189840



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list