Hacker News new | ask | show | jobs
by BudVVeezer 3385 days ago
Yes and no. Many compilers support #pragma once, but whether your build environment handles it is another matter. Having your headers on network drives, or having symlinks to your headers, etc can cause issues with #pragma once handling (depending on the implementation) that can often be hard to track down, especially if building with multiple compilers. Include header guards do not have these issues.
1 comments

Cool, thanks for the clarification!