Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

C++ modules has been promised for a long time, I wouldn't hold my breath on it coming anytime soon.

As for build times, it is sadly very easy in C++ to have long build times. Avoiding it takes careful work, knowing when and what to include, when to forward-declare instead, and always maintaining includes as requirements change, etc.

There's nothing to make that process any easier or automatic, which is very frustrating. There's the include-what-you-use project, but I could never get it to work.



I was under the impression C++ Modules were accepted in C++20, although I'm not sure how complete the implementations are.

But yes, C++ build times are why I'm not a fan of header-only libraries, especially ones that have templating in them.




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

Search: