A big improvement in compile times with modern C++ can be had with C++20 standard modules.
This requires extremely bleeding-edge toolchains, though: VS 2022 17.10, Clang 18, and GCC 14.
This requires extremely bleeding-edge toolchains, though: VS 2022 17.10, Clang 18, and GCC 14.
[0] https://github.com/clangd/clangd/issues/1293 [1] https://github.com/snu-sf-class/swpp202401/issues/21
Also, modules is probably one of the biggest changes in terms of work required in build systems, compilers and tooling since at least C++11.
[1]: https://github.com/llvm/llvm-project/releases/tag/llvmorg-18...
[2]: https://learn.microsoft.com/en-us/visualstudio/releases/2022...