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

CWG2667 [cpp.import] Example should demonstrate that module imports do not import macros #199

Closed
zygoloid opened this issue Dec 16, 2022 · 1 comment

Comments

@zygoloid
Copy link
Member

Reference (section label): [cpp.import]

Link to reflector thread (if any): https://twitter.com/starfreakclone/status/1603571154245275653

Issue description:

We have an example in [cpp.import] of header unit importation adding points of definition for macros, but the example does not make it clear that named module imports do not have that effect.

Suggested resolution:

Add a module unit to the example in [cpp.import]/8 that imports the header unit, and explain that importing that module unit does not make macros from the header unit visible.

@jensmaurer jensmaurer changed the title [cpp.import] Example should demonstrate that module imports do not import macros CWG2667 [cpp.import] Example should demonstrate that module imports do not import macros Dec 17, 2022
@jensmaurer
Copy link
Member

CWG2667

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