4 ms·
I wouldn't put much stock into such starter templates, the developer who put them together has a goal and priorities that are not yours. QT tends to be particu
by P5fRxh5kUvp2th 4y ago
I wouldn't put much stock into such starter templates, the developer who put them together has a goal and priorities that are not yours.
QT tends to be particularly painful outside of QTCreator so I also wouldn't use that as a general knock against C++.
having said that, C++ build times are slow due to both the #include mechanism and templates. The C++ modules coming will help deal with the #include mechanism and templates can be instantiated to assist the compiler.
None of it is amazing, but the compile times are better than rust imo.
- Night_Thastus 4y agoC++ 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.
- P5fRxh5kUvp2th 4y agoI 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.