This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++20 status.

2988. Clause 32 cleanup missed one typename

Section: 32.5.2 [atomics.syn] Status: C++20 Submitter: Jens Maurer Opened: 2017-06-25 Last modified: 2021-02-25

Priority: 0

View other active issues in [atomics.syn].

View all other issues in [atomics.syn].

View all issues with C++20 status.

Discussion:

P0558R1 missed updating one of the std::atomic_exchange signatures to avoid independent deduction for T on the second parameter.

[ 2017-06-26 Moved to Tentatively Ready after 6 positive votes on c++std-lib. ]

Proposed resolution:

This wording is relative to N4659.

  1. Edit 32.5.2 [atomics.syn], header <atomic> synopsis, as indicated:

    template<class T>
    T atomic_exchange(volatile atomic<T>*, typename atomic<T>::value_type) noexcept;