4 ms·
Even if you don't write header guards by hand you get issues. The amount of time I got bitten by someone naming a file "widget.h" or "utils.hpp" three levels of
by jcelerier 1y ago
Even if you don't write header guards by hand you get issues. The amount of time I got bitten by someone naming a file "widget.h" or "utils.hpp" three levels of libraries down with the corresponding #ifndef WIDGET_H which broke the build in incredibly mysterious ways...
https://github.com/search?q=ifndef+WIDGET_H&type=code https://github.com/search?q=ifndef+WIDGET_H&type=code
- tom_ 1y agoI use a guid. (A different one each time, of course.)