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

#pragma once vs. include guards #543

Open
richardschu opened this issue Aug 7, 2023 · 1 comment
Open

#pragma once vs. include guards #543

richardschu opened this issue Aug 7, 2023 · 1 comment
Labels
C++ C++ specific aspects

Comments

@richardschu
Copy link
Contributor

In PR #542 , a discussion regarding include tokens came up. Do we go #pragma once? I think it is simpler than the include guards we are currently having!
Any thoughts on this?

@nfehn nfehn added the C++ C++ specific aspects label Aug 7, 2023
@sebproell
Copy link

In case you decide to go for #pragma once (I recently did), I can recommend https://github.com/cgmb/guardonce to do it automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ C++ specific aspects
Projects
None yet
Development

No branches or pull requests

3 participants