New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P0019R8 Atomic ref #2172
P0019R8 Atomic ref #2172
Conversation
source/atomics.tex
Outdated
\indexlibrarymember{exchange}{atomic_ref<\placeholder{integral}>}% | ||
\indexlibrarymember{exchange}{atomic_ref<\placeholder{floating-point}>}% | ||
\begin{itemdecl} | ||
T exchange(T desired, memory_order order = memory_order_seq_cst) noexcept; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The paper is missing a const
here, presumably a typo (since it's in the class definition).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
source/atomics.tex
Outdated
\indexlibrarymember{is_always_lock_free}{atomic_ref<\placeholder{integral}>}% | ||
\indexlibrarymember{is_always_lock_free}{atomic_ref<\placeholder{floating-point}>}% | ||
\begin{itemdecl} | ||
static constexpr bool is_always_lockfree; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is misspelled in the paper.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah should be is_always_lock_free
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Shortened label for [atomics.ref.memberops] [atomic.refs.operations] const-qualify 'atomic_ref<T>::exchange' The synopsis shows the 'const', and applying it is consistent with the pointer semantics of std::atomic_ref. [atomics.ref.operations] Fix mis-spelled is_always_lock_free
1bbdd16
to
8dc9432
Compare
Fixes #2141.