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

remove counts of headers etc from [headers] and [depr.c.headers] #766

Closed
zygoloid opened this issue Jun 23, 2016 · 7 comments
Closed

remove counts of headers etc from [headers] and [depr.c.headers] #766

zygoloid opened this issue Jun 23, 2016 · 7 comments

Comments

@zygoloid
Copy link
Member

We don't need to give an explicit count of the number of items in a table, and doing so creates a maintenance burden and possibility of errors. We should remove these (an LWG informal poll has agreed to this).

@jensmaurer
Copy link
Member

jensmaurer commented Dec 1, 2016

This is a direct outflow from chaos theory, it seems.

[headers] lists the C headers in a table, and then [depr.c.headers] lists those exact same headers again.
[Removed my confusion about deprecated C headers vs. deprecated C++ headers.]

@tkoeppe
Copy link
Contributor

tkoeppe commented Dec 1, 2016

@jensmaurer: I'm not sure that's true. [headers] lists <cstddef>, which is not deprecated. [depr.c.headers] lists <stddef.h>, which is deprecated, as stated by [diffs.mods.to.headers].

Moreover we are apparently also deprecating <ccomplex> etc; I have an issue open about that (a pull request, in fact).

What's perhaps confusing is the term "C header", but only mildly so.

@jensmaurer
Copy link
Member

@tkoeppe: Ah, you're right. Those lists subtly differ in their .h suffix. :-/

@jensmaurer
Copy link
Member

Why does D.4p2 talk about C++ headers, then? [depr.c.headers] is supposed to be about .h -style headers.

Why does C.5.1p4 talk about C++ headers in a section entitled "C standard library", showing incompatibilities vs. C11? Surely, C11 doesn't have those C++ headers.

jensmaurer added a commit to jensmaurer/draft that referenced this issue Dec 1, 2016
@tkoeppe
Copy link
Contributor

tkoeppe commented Dec 1, 2016

I think D.4p2 is just because Clark couldn't find a better place for that in P0063.

C.5.1p4 is a note, but I was told that all of Annex C is a note, so it's not marked up. (I recently reworked C.5.1 a fair bit.)

@tkoeppe
Copy link
Contributor

tkoeppe commented Dec 1, 2016

I filed an LWG issue about all this a while ago. I think it would make sense in general to say that "X is deprecated" in the main text, and then describe X in Annex D, but we need to think how that affects things like <cstdalign>. Alternatively, we can provide deprecated facilities entirely in Annex D, such as auto_ptr.

@jensmaurer
Copy link
Member

See also #1054.

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

No branches or pull requests

3 participants