2988. Clause 32 cleanup missed one typename

Section: 33.5.2 [atomics.syn] Status: C++20 Submitter: Jens Maurer Opened: 2017-06-25 Last modified: 2021-02-25 10:48:01 UTC

Priority: 0

View other active issues in [atomics.syn].

View all other issues in [atomics.syn].

View all issues with C++20 status.


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 33.5.2 [atomics.syn], header <atomic> synopsis, as indicated:

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