does anyone actually use header guards anymore in personal c++ projects lol

@deadbeef Only to prevent errors about duplication of entities at either compile or link time.

@rmerriam " once" directive seems to be supported by most compilers nowadays. I've never had to use manual include guards, though again, none of the projects I've worked on are really that big.

Follow

@rmerriam Could be some edge cases where once doesn't work.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.