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

[stream.types][derivation] What are "basic integral types"? LWG3696 #5240

Open
frederick-vs-ja opened this issue Jan 28, 2022 · 4 comments
Open
Labels
lwg Issue must be reviewed by LWG.

Comments

@frederick-vs-ja
Copy link
Contributor

Such phase has been present even before C++98. Are they simply "integral types" or "standard integral types"?

@jwakely
Copy link
Member

jwakely commented Jan 28, 2022

I think [stream.types] is trying to say "standard signed integer types", and the footnote should say "standard integer types".

@jensmaurer
Copy link
Member

jensmaurer commented Jan 28, 2022

[support.types.layout] p2 and p3 imply that ptrdiff_t and size_t can be extended integer types.
Changing the footnote as requested would make it inconsistent with the normative rule.

@jwakely, I think it's not editorially-obvious whether [stream.types] wants to allow extended integer types or not. It is at least conceivable to have a platform where the largest standard integer type is 32 bits, yet an extended integer type is used to represent 64-bit file sizes.

(I'm reading the existing "basic" as possibly meaning "built-in".)

Could you please make this an LWG issue that makes all of [support.types.layout], [stream.types], and [derivation] consistent?

@jensmaurer jensmaurer added the lwg Issue must be reviewed by LWG. label Jan 28, 2022
@jensmaurer
Copy link
Member

I think the footnote can be fixed editorially by simple dropping "for basic integral types", since it applies to any typedef.

@frederick-vs-ja
Copy link
Contributor Author

This is now LWG3696.

@frederick-vs-ja frederick-vs-ja changed the title [stream.types][derivation] What are "basic integral types"? [stream.types][derivation] What are "basic integral types"? LWG3696 May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lwg Issue must be reviewed by LWG.
Projects
None yet
Development

No branches or pull requests

3 participants