Pragma once instead of header guards #23
Konard
announced in
C++ design decisions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Support for header guards is dropped.
The only way we prevent repeated inclusion of headers is by adding
#pragma once
directive.Pros:
Cons:
This design decision should be applied to all C++ code in all LinksPlatform's repositories, unless it is impossible to do so. The change should be applied by lazy refactoring or automation.
Beta Was this translation helpful? Give feedback.
All reactions