Skip to content

[basic.fundamental] Use std:: prefix consistently for library type aliases#8398

Merged
tkoeppe merged 1 commit into
cplusplus:mainfrom
eisenwave:basic-fundamental-std-prefix
Nov 3, 2025
Merged

[basic.fundamental] Use std:: prefix consistently for library type aliases#8398
tkoeppe merged 1 commit into
cplusplus:mainfrom
eisenwave:basic-fundamental-std-prefix

Conversation

@eisenwave

@eisenwave eisenwave commented Nov 3, 2025

Copy link
Copy Markdown
Member

Later in [basic.fundamental], we use std::nullptr_t. To my understanding, we generally want to use std:: when referring to library types from within core wording.

Perhaps there would have been an argument that uint_least16_t is a "C thing" and so unlike std::nullptr_t, it doesn't need a std:: prefix, but now nullptr_t also exists in C23 which defeats any justification for this local inconsistency.

@jwakely

jwakely commented Nov 3, 2025

Copy link
Copy Markdown
Member

I don't think the C argument would work here, because char16_t and char32_t are very different in C. It would make little sense to argue for consistency with C while defining things differently from C!

@tkoeppe tkoeppe merged commit ca8bf9a into cplusplus:main Nov 3, 2025
2 checks passed
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