r/cpp • • Aug 08 '20

Create a fully functioning command line interface with 1.5 lines of code (wo. include statement)

https://github.com/kongaskristjan/fire-hpp
230 Upvotes

62 comments sorted by

View all comments

Show parent comments

11

u/kongaskristjan Aug 08 '20

Though having it's perks, #pragma once is non-standard according to wikipedia.

1

u/BobFloss Aug 08 '20

Every compiler supports it.

19

u/kongaskristjan Aug 08 '20

Well, I'm actually OK with using non-standard stuff, if it's really supported everywhere, but this is a library that is meant to be plug and play for everyone, including people who want to comply with the standard strictly.

It's quite similar to the reason why I test against maximum compiler warnings on various compilers - I don't know what the user needs to comply with.

20

u/Nicksaurus Aug 08 '20

Thank you for not making a library that spits out warnings whenever you build it, those are so annoying