Skip to content

CWG2698 Using extended integer types with z suffix #1467

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

Closed
jensmaurer opened this issue Feb 18, 2023 · 1 comment · Fixed by cplusplus/draft#6328
Closed

CWG2698 Using extended integer types with z suffix #1467

jensmaurer opened this issue Feb 18, 2023 · 1 comment · Fixed by cplusplus/draft#6328
Labels
CWG Core plenary-approved Papers approved for inclusion in their target vehicle by plenary vote.
Milestone

Comments

@jensmaurer
Copy link
Member

It appears the approved wording allows using extended integer types for integer literals with a "z" suffix. The author of the paper introducing the feature claims that was not intended, yet the paper introducing the feature seems silent on the issue.

CWG seeks approval of EWG for restricting z and Z suffixes to std::size_t and its corresponding signed integer type.

See CWG2698 for details.

@jensmaurer jensmaurer added the EWG Evolution label Feb 18, 2023
@jensmaurer jensmaurer added this to the 2023-telecon milestone Feb 18, 2023
@erichkeane
Copy link
Collaborator

EWG discussed this during the May 11th, 2023 telecon, and the following poll was taken:

For CWG2698, EWG accepts the CWG proposed resolution, which clarifies that the 'z'/'zu' suffix means "the signed type corresponding to size_t"/size_t only.

SF F N A SA
6 8 0 0 0

Result: Consensus

Sufficient guidance was given to unblock CWG, so assigning back to CWG.

@erichkeane erichkeane added CWG Core and removed EWG Evolution labels May 11, 2023
@jensmaurer jensmaurer added the tentatively-ready-for-plenary Reviewed between meetings; ready for a vote. label Jun 7, 2023
@cor3ntin cor3ntin added plenary-approved Papers approved for inclusion in their target vehicle by plenary vote. and removed tentatively-ready-for-plenary Reviewed between meetings; ready for a vote. labels Jun 17, 2023
@cplusplus cplusplus deleted a comment Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CWG Core plenary-approved Papers approved for inclusion in their target vehicle by plenary vote.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants