So I recently had a discussion where I work, in which I was questioning the use of a double include guard over a single guard. What I mean by double gua
Although there are people arguing against it, in practice '#pragma once' works perfectly and the main compilers (gcc/g++, vc++) support it.
So whatever puristic argumentation people are spreading, it works a lot better:
So simply put:
#pragma once
at the start of the file, and that's it. Optimized, maintainable, and ready to go.