Skip to content

[diff.mods.to.declarations] Also mention 'byte' and 'to_integer. - #4145

Merged
jensmaurer merged 1 commit into
cplusplus:masterfrom
tkoeppe:nullptr
Sep 8, 2020
Merged

jensmaurer merged 1 commit into
cplusplus:masterfrom
tkoeppe:nullptr

Conversation

@tkoeppe

@tkoeppe tkoeppe commented Sep 6, 2020 •

Copy link
Copy Markdown
Contributor

These names, as well as operators for std::byte, are part of .

Fixes #4144.

@tkoeppe
tkoeppe requested review from AlisdairM and jwakely September 6, 2020 20:01

@jwakely jwakely left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

NACK. I think this is a normative change, because currently <stddef.h> is required to declare ::nullptr_t. That's how libstdc++ and libc++ interpret it (and MS STL too as far as I can tell).

C.6.3 [diffs.mods.to.declarations] is informative (not normative), and my interpretation is that it's saying "The C++ version of this header adds nullptr_t, which isn't in the C version of this header". It's not saying that <cstddef> declares it and C++'s <stddef.h> doesn't.

@tkoeppe

tkoeppe commented Sep 6, 2020

Copy link
Copy Markdown
Contributor Author

You're right. Should we create an issue for this then? (I still think this is a desirable change, but it is indeed normative.)

I will replace the wording changes here with those for [diffs.mods.to.declarations].

These names, as well as operators for std::byte, are part of <cstddef>.
@tkoeppe

tkoeppe commented Sep 6, 2020

Copy link
Copy Markdown
Contributor Author

@jwakely: PTAL.

@tkoeppe tkoeppe changed the title [depr.c.header.others] Add 'std::nullptr_t' to the list of names NOT declared by stddef.h. [diff.mods.to.declarations] Also mention 'byte' and 'to_integer. Sep 6, 2020
@tkoeppe
tkoeppe requested a review from jwakely September 8, 2020 12:25
@jensmaurer
jensmaurer merged commit d27fe13 into cplusplus:master Sep 8, 2020
@tkoeppe
tkoeppe deleted the nullptr branch September 8, 2020 14:48
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.

Inconsistent description of C++ extensions to header <cstddef> LWG3484

3 participants