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

[atomics.syn] macros in namespace std #4378

Closed
AlisdairM opened this issue Nov 16, 2020 · 0 comments · Fixed by #4410
Closed

[atomics.syn] macros in namespace std #4378

AlisdairM opened this issue Nov 16, 2020 · 0 comments · Fixed by #4410

Comments

@AlisdairM
Copy link
Contributor

AlisdairM commented Nov 16, 2020

The header synopsis for defines macros within the scope of namespace std. AFAICT, all other headers consistently define macros outside of any namespaces, to minimize confusion. Most of the <cstd*> headers defer all macros to after namespace std, although <cstdlib> defines macros /near/ the top of the file, closing and re-opening namespace std.

Suggest moving the atomic macro definitions to the top of the file, above the opening of namespace std, and potentially simplifying by moving the macros up there as well.

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 a pull request may close this issue.

1 participant