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

[lib] Add 'namespace std' wrappings around class definitions #5126

Merged
merged 1 commit into from Jan 14, 2022

Conversation

jensmaurer
Copy link
Member

Those were missing in a few places, notably [rand].

Also add an automated check.

Fixes #1168

Those were missing in a few places, notably [rand].

Also add an automated check.
@JohelEGP
Copy link
Contributor

JohelEGP commented Nov 26, 2021

This excludes specializations of type traits in itemdecl environments. Like https://wg21.link/pair.astuple.

@jensmaurer
Copy link
Member Author

@JohelEGP , I agree with your statement, but I won't fix that in this pull request nor do I think we need to change it at all. Partial specializations, although definitions, perform a sort-of lookup for the primary template, so there's little doubt to which namespace they belong. (We try hard to avoid annotating itemdecls.)

@tkoeppe tkoeppe merged commit 5f830f9 into cplusplus:main Jan 14, 2022
@jensmaurer jensmaurer deleted the c49 branch January 14, 2022 17:37
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.

Which codeblocks should contain "namespace std"?
3 participants