Added "#pragma once" idea to include guards guideline.

This commit is contained in:
Ralph Tandetzky
2015-03-07 20:17:48 +01:00
parent bece9883e1
commit 2e55a671e1

View File

@@ -113,6 +113,9 @@ class MyClass {
#endif
```
You may also consider to use the `#pragma once` directive instead which is quasi standard across many compilers.
It's short and makes the intent clear.
## {} are required for blocks.
Leaving them off can lead to semantic errors in the code.