This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Dup status.
Section: 32.5 [atomics] Status: Dup Submitter: Holger Grund Opened: 2008-12-19 Last modified: 2016-01-28
Priority: Not Prioritized
View all other issues in [atomics].
View all issues with Dup status.
Duplicate of: 880
Discussion:
I'm looking at 32.5 [atomics] and can't really make sense of a couple of things.
Firstly, there appears to be a typo in the <cstdatomic>
synopsis:
The
atomic_exchange
overload taking anatomic_address
is missing the second parameter:void* atomic_exchange(volatile atomic_address*);should be
void* atomic_exchange(volatile atomic_address*, void*);Note, that this is not covered by 880(i) "Missing atomic exchange parameter", which only talks about the
atomic_bool
.
Proposed resolution:
Change the synopsis in 32.5 [atomics]/2:
void* atomic_exchange(volatile atomic_address*, void*);