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

[diff.mods.to.headers] Explain what happened to meaningless C headers #1051

Merged
merged 1 commit into from Nov 16, 2016

Conversation

tkoeppe
Copy link
Contributor

@tkoeppe tkoeppe commented Nov 16, 2016

A section called "modifications to headers" should not fail to explain what happened to all the other C headers.

Part of Issue #1006.

@tkoeppe
Copy link
Contributor Author

tkoeppe commented Nov 16, 2016

Screenshot:

image

the \Cpp standard library provides the C headers enumerated
in~\ref{depr.c.headers}, but their use is deprecated in \Cpp.

\pnum
\begin{note}
Copy link
Member

Choose a reason for hiding this comment

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

You don't need a note here, this whole clause is non-normative.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, good point, removed.

from the \Cpp standard library.
The headers \tcode{<ciso646>}, \tcode{<cstdalign>}~(\ref{cstdalign.syn}),
and \tcode{<cstdbool>}~(\ref{cstdbool.syn}) are meaningless in \Cpp. Use of
the \Cpp headers \tcode{<ccomplex>}, \tcode{<cstdalign>}, \tcode{<cstdbool>},
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I wonder why <ciso646> is not deprecated... maybe we should file an issue for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just emailed lwgchair and opened an issue :-)

In fact, I wonder if we cannot remove the deprecated C++ headers in C++2a and move the synopses into Annex D.

\tcode{<stdnoreturn.h>}\indextext{\idxhdr{stdnoreturn.h}},
and \tcode{<threads.h>}\indextext{\idxhdr{threads.h}},
nor are the C headers themselves part of \Cpp.
The headers \tcode{<ccomplex>}\indextext{\idxhdr{ccomplex}}~(\ref{ccomplex.syn})
Copy link
Member

Choose a reason for hiding this comment

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

New paragraph here (between "headers in C and not in C++" and "headers in C++ that are not the same as the corresponding C header").

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, and also below.

@tkoeppe
Copy link
Contributor Author

tkoeppe commented Nov 16, 2016

Update:

image

@tkoeppe tkoeppe merged commit 9c076eb into cplusplus:master Nov 16, 2016
@tkoeppe tkoeppe deleted the iso646 branch November 16, 2016 03:47
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.

None yet

2 participants