Hacker News new | ask | show | jobs
by LucaSas 2387 days ago
Thanks for the comment, I might steal your "subset of C99 which compiles both in C and C++ mode on GCC, clang and MSVC" quote and put it in the article if that's ok ;)
1 comments

Is there a benefit to building C code with a C++ compiler?
C++ has some stricter type checking by default, but most of this can be achieved by raising the warning level when compiled as C.

Nevertheless I received enough requests to make my C libraries 'C++ compliant' that I gave in :)

Only if your project is already mostly C++ and you would like to use your C++ compiler for everything, to keep the build process simpler.