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

Use of angle brackets around file names for include statements #22

Closed
elfring opened this issue Dec 22, 2016 · 4 comments
Closed

Use of angle brackets around file names for include statements #22

elfring opened this issue Dec 22, 2016 · 4 comments

Comments

@elfring
Copy link

elfring commented Dec 22, 2016

Would you like to replace any double quotes by angle brackets around file names for include statements?

@markcharney
Copy link
Contributor

Not so sure about this one. Is this really necessary?

@elfring
Copy link
Author

elfring commented Dec 23, 2016

I suggest to reconsider the consequences of the following wording from the section "16.2 Source file inclusion" in the standard specification for the programming language "C++".

…
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
…

@rscohn2
Copy link
Contributor

rscohn2 commented Dec 23, 2016 via email

@elfring
Copy link
Author

elfring commented Dec 23, 2016

There are different opinions about the handling of the involved implementation-defined behaviour.

  • Will header files be also searched outside the specified include directories if double quotes are used for the discussed preprocessor statement?
  • Is there a speed difference measurable if a file is not found there and the search will be retried with “the angle brackets inclusion method”?

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