Hacker News new | ask | show | jobs
by Gibbon1 2377 days ago
Not a C++ monkey but headers in C/C++ have the problem that you can't parse them independently of the source file they are included in because of the predecessor. Which means you need to re-parse them each and every time they are included in a project.
2 comments

I think you meant preprocessor, not predecessor, lol. I had to reread that a time or two. I knew what you were trying to say and I still got confused by it.
d'oh!
However, every modern C compiler and tools like cmake allow you to use precompiled headers to avoid that step if it is what you want to do.