We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The note in [atomics.types.operations] p25 (N4861) contains the following code example of the effects of the compare_exchange_strong operation:
compare_exchange_strong
if (memcmp(this, &expected, sizeof(*this)) == 0) memcpy(this, &desired, sizeof(*this)); else memcpy(expected, this, sizeof(*this));
This code is ill-formed, because expected in the else-branch is missing a leading & operator.
expected
&
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The note in [atomics.types.operations] p25 (N4861) contains the following code example of the effects of the
compare_exchange_strong
operation:This code is ill-formed, because
expected
in the else-branch is missing a leading&
operator.The text was updated successfully, but these errors were encountered: