Movatterモバイル変換


[0]ホーム

URL:



This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofDup status.

942. Atomics synopsis typo

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:

Theatomic_exchange overload 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 theatomic_bool.

Proposed resolution:

Change the synopsis in 32.5[atomics]/2:

void* atomic_exchange(volatile atomic_address*, void*);

[8]ページ先頭

©2009-2025 Movatter.jp