Hacker News new | past | comments | ask | show | jobs | submit login

If minor changes trigger long compilation, there is something wrong with your code organization

A lot of larger C++ projects use "pimpl" for this reason (http://en.wikipedia.org/wiki/Opaque_pointer). Also in professional projects with large code bases that I've worked on in the past we've always had a distributed compilation environment (distcc, icecream, etc.)




In a lot of cases, just use forward declarations to avoid unnecessary includes in the header files goes a long way.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: