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

< characters are also allowed in q-char-sequence's #4109

Closed
jabelloc opened this issue Aug 5, 2020 · 2 comments
Closed

< characters are also allowed in q-char-sequence's #4109

jabelloc opened this issue Aug 5, 2020 · 2 comments

Comments

@jabelloc
Copy link

jabelloc commented Aug 5, 2020

[cpp.include]/3:

A preprocessing directive of the form

    # include " q-char-sequence " new-line

causes the replacement of that directive by the entire contents of the source file identified by the specified
sequence between the " delimiters. The named source file is searched for in an implementation-defined
manner. If this search is not supported, or if the search fails, the directive is reprocessed as if it read

    # include < h-char-sequence > new-line

with the identical contained sequence (including > characters, if any) from the original directive.

The < character is missing in the last sentence above.

@jwakely
Copy link
Member

jwakely commented Aug 5, 2020

No, I don't think it's missing, it doesn't need to be there. The point is that h-char-sequence doesn't normally allow > because it isn't an h-char. But < is allowed in an h-char-sequence so there's no need to say anything special about it.

@jensmaurer
Copy link
Member

Agreed.

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