This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofDup status.
Section: 32.5[atomics]Status:DupSubmitter: Holger GrundOpened: 2008-12-19Last modified: 2016-01-28
Priority:Not Prioritized
View all otherissues in [atomics].
View all issues withDup 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_exchangeoverload taking anatomic_addressis missing the second parameter:void* atomic_exchange(volatile atomic_address*);should be
void* atomic_exchange(volatile atomic_address*, void*);Note, that this isnot covered by880(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*);