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

[using.headers]/1 Not declaration, but directive? #3194

Closed
onihusube opened this issue Aug 23, 2019 · 1 comment
Closed

[using.headers]/1 Not declaration, but directive? #3194

onihusube opened this issue Aug 23, 2019 · 1 comment

Comments

@onihusube
Copy link
Contributor

In [using.headers] paragraph 1

The entities in the C++ standard library are defined in headers, whose contents are made available to a translation unit when it contains the appropriate #include preprocessing directive ([cpp.include]) or the appropriate import declaration ([module.import]).

Isn't import declaration here import directive?

@jensmaurer
Copy link
Member

Well, not really. The "import directive" is transformed into a module-import-declaration [module.import], so that part is correct. Also, the term "entities" does not include macros, so this particular sentence, on the face of it, is not preprocessor-related.

(The sentence is broken, though, because it says "entities are defined in headers", which is probably not what we want to say: They should be declared in headers, and we don't care where they're actually defined.)

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

2 participants