Skip to content
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

Export each of the memory_order enumerators #247

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

kernelchuk
Copy link
Contributor

The lib/atomic.h exports memory_order enum into the global namespace, but none of its enumerators. According to Section 7.3.3 "The using declaration" of the C++ standard: "specifying an enumeration name in a using-declaration does not declare its enumerators in the using-declaration's declarative region." See also: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0943r1.html

The lib/atomic.h exports memory_order enum into the global namespace,
but none of its enumerators. According to Section 7.3.3 "The using
declaration" of the C++ standard: "specifying an enumeration name
in a using-declaration does not declare its enumerators in
the using-declaration's declarative region." See also:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0943r1.html

Signed-off-by: Sergei Korneichuk <sergei.korneichuk@amd.com>
@kernelchuk
Copy link
Contributor Author

Hi @edmooring, I'll have to update the Copyright in the file.
Would it be possible for @sleiner to review this PR ?

@arnopo arnopo requested review from edmooring, arnopo and tnmysh August 16, 2023 15:18
Copy link
Contributor

@arnopo arnopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@tnmysh tnmysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sleiner
Copy link
Contributor

sleiner commented Aug 17, 2023

@kernelchuk sorry for the delay! This seems sensible to me 👍🏻

@arnopo arnopo merged commit 548f642 into OpenAMP:main Aug 21, 2023
@arnopo arnopo added this to the Release V2023.10 milestone Aug 21, 2023
@kernelchuk kernelchuk deleted the am_order branch September 20, 2023 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants