5,303
edits
No edit summary |
|||
Line 2: | Line 2: | ||
==Include Guard== | ==Include Guard== | ||
For most modern compilers ( | For most modern compilers (MS Visual C++, GCC, Clang/llvm), you can just add a <code>#pragma once</code> at the top.<br> | ||
Note that this is not defined in the standard. | Note that this is not defined in the standard.<br> | ||
See [[Wikipedia: pragma once#Portability]] to see a list of compilers which support this. | |||
For older compilers: | For older compilers: |