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

[basic][expr] Declare but not define typedef-names in standard headers #6435

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

frederick-vs-ja
Copy link
Contributor

Since (non-template) typedef-names are declared but not defined ([basic.def]/2.9, [basic.def]/2.10).

@frederick-vs-ja frederick-vs-ja changed the title [basic][expr] Declare but not define typedef-names declared in standard headers [basic][expr] Declare but not define typedef-names in standard headers Aug 3, 2023
@AlisdairM
Copy link
Contributor

Seems correct to me. Thoughts @jensmaurer?

Copy link
Member

@jensmaurer jensmaurer left a comment

Choose a reason for hiding this comment

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

[basic.def] p2.9 says that typedefs are never definitions, so this is a strict improvement.

@tkoeppe tkoeppe force-pushed the declare-typedef-names-core branch from c97427a to 05fc5f5 Compare February 12, 2025 07:43
@tkoeppe tkoeppe force-pushed the declare-typedef-names-core branch from 05fc5f5 to 24a7cd3 Compare February 12, 2025 07:44
@tkoeppe tkoeppe merged commit 1542d98 into cplusplus:main Feb 12, 2025
2 checks passed
@frederick-vs-ja frederick-vs-ja deleted the declare-typedef-names-core branch February 12, 2025 09:10
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.

None yet

4 participants